/* login-style.css */
.modern-login-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 20px 48px rgba(0, 0, 0, 0.05), 0 1px 4px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-login-form:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 20px 50px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.modern-login-form .input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.modern-login-form label {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

.modern-login-form input[type="email"],
.modern-login-form input[type="password"],
.modern-login-form input[type="text"] {
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background-color: #f8fafc;
    font-size: 15px;
    color: #0f172a;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
}

.modern-login-form input[type="email"]:focus,
.modern-login-form input[type="password"]:focus,
.modern-login-form input[type="text"]:focus {
    border-color: #087c2d;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.modern-login-form input::placeholder {
    color: #94a3b8;
}

.modern-login-form .password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.modern-login-form .toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    height: 100%;
}

.modern-login-form .toggle-password:hover {
    color: #475569;
}

.modern-login-form .toggle-password svg {
    width: 20px;
    height: 20px;
}

.modern-login-form .options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.modern-login-form .remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
}

.modern-login-form .remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
    cursor: pointer;
    border-radius: 4px;
    margin: 0;
}

.modern-login-form .forgot-pass {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.modern-login-form .forgot-pass:hover {
    color: #2563eb;
    text-decoration: underline;
}

.modern-login-form .btn-login {
    background-color: #018144;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    margin-top: 8px;
    width: 100%;
    font-family: inherit;
}

.modern-login-form .btn-login:hover {
    background-color: #03a456;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.modern-login-form .btn-login:active {
    transform: translateY(1px);
    box-shadow: none;
}

.modern-login-form .error-message {
    color: #ef4444;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    min-height: 20px;
}

.modern-login-form .error-message:empty {
    display: none;
}

/* Optional Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .modern-login-form {
        background: #1e293b;
        border-color: #334155;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 20px 48px rgba(0, 0, 0, 0.2);
    }
    
    .modern-login-form label {
        color: #e2e8f0;
    }
    
    .modern-login-form input[type="email"],
    .modern-login-form input[type="password"],
    .modern-login-form input[type="text"] {
        background-color: #0f172a;
        border-color: #475569;
        color: #f1f5f9;
    }
    
    .modern-login-form input[type="email"]:focus,
    .modern-login-form input[type="password"]:focus,
    .modern-login-form input[type="text"]:focus {
        border-color: #60a5fa;
        background-color: #1e293b;
        box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15);
    }
    
    .modern-login-form .remember-me {
        color: #94a3b8;
    }
    
    .modern-login-form .forgot-pass {
        color: #60a5fa;
    }
    
    .modern-login-form .forgot-pass:hover {
        color: #93c5fd;
    }
    
    .modern-login-form .btn-login {
        background-color: #3b82f6;
    }
    
    .modern-login-form .btn-login:hover {
        background-color: #60a5fa;
        box-shadow: 0 4px 12px rgba(96, 165, 250, 0.25);
    }
}
