/**
 * assets/css/login.css
 * Premium Login Styling for GST Billing System
 */

:root {
    --login-primary: #000000;
    --login-primary-hover: #1a202c;
    --login-bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --card-bg: rgba(255, 255, 255, 0.98);
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--login-bg-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px 0;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 24px;
}

.login-card {
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    padding: 40px 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header img {
    height: 110px;
    width: auto;
    margin-bottom: 24px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.login-header img:hover {
    transform: scale(1.05);
}

.login-header h2 {
    font-weight: 700;
    color: #0f172a;
    font-size: 24px;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.login-header p {
    color: #64748b;
    font-size: 14px;
    font-weight: 400;
}

.form-label {
    font-weight: 700;
    color: #334155;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.input-group {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.input-group:focus-within {
    border-color: var(--login-primary);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
}

.input-group-text {
    background-color: transparent;
    border: none;
    color: #94a3b8;
    padding-left: 16px;
    font-size: 18px;
    transition: color 0.3s ease;
}

.input-group:focus-within .input-group-text {
    color: var(--login-primary);
}

.form-control {
    border: none;
    background-color: transparent !important;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
    box-shadow: none !important;
}

/* Fix Autofill Background Color */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #f8fafc inset !important;
    -webkit-text-fill-color: #1e293b !important;
    transition: background-color 5000s ease-in-out 0s;
}

.input-group:focus-within input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
}

.btn-toggle-pwd {
    background-color: transparent;
    border: none;
    color: #94a3b8;
    padding: 0 16px;
    transition: all 0.2s ease;
}

.btn-toggle-pwd:hover {
    color: var(--login-primary);
}

.btn-login {
    background-color: var(--login-primary);
    border: none;
    border-radius: 14px;
    padding: 14px;
    font-weight: 700;
    font-size: 16px;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-login:hover {
    background-color: var(--login-primary-hover);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.alert {
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    border: none;
    padding: 12px 16px;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
}

.bi {
    vertical-align: -0.125em;
}
@media (max-width: 480px) {
    .login-container {
        padding: 16px;
    }
    .login-card {
        padding: 32px 20px;
        border-radius: 20px;
    }
    .login-header img {
        height: 80px;
    }
    .login-header h2 {
        font-size: 20px;
    }
}
