/* Update css/core/login.css with these improvements */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* min-height: 100vh; */
    width: 600px;
    padding: 1rem;
}

.login-card {
    width: 100%;
    max-width: 800px;
    padding: 2.5rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box; /* Add this to include padding in width calculation */
}

.login-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.login-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    flex-direction: column;
}

.login-header img {
    width: 60px;
    height: 60px;
    margin-right: 1.25rem;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.login-header h1 {
    font-size: 1.35rem;
    color: #333;
    margin: 0;
    font-weight: 600;
    /* text-transform: uppercase; */
}

.login-header p {
    font-size: 1rem;
    color: #666;
    margin-top: 0.5rem;
}

#native-auth-overlay .login-form {
    display: contents;
    display: flex;
    flex-direction: column;
    width: 100%; /* Ensure the form takes full width */
}

.form-group {
    margin-bottom: 1.5rem;
    max-width: 100%;
    /* background-color: #f4f6f7; */
    padding: 15px 10px;
    /* background: transparent; */
    border: none;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
    color: #8e8e8e;
    font-weight: 500;
}

#native-overlay-login-form .form-group label {
    margin-bottom: 0.5rem;
}

#native-overlay-login-form .form-group input {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fff;
    box-sizing: border-box; /* Add this to include padding and border in width calculation */
}

.form-group input:focus, 
.form-group input:valid {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: #f7faff;
}

.login-button {
    margin-top: 1.5rem;
    padding: 0.9rem;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
    width: 100%;
}

.login-button:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(59, 130, 246, 0.25);
}

.login-button:active {
    transform: translateY(1px);
}

.error-message {
    color: #ef4444;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    text-align: center;
    display: none;
    padding: 0.75rem;
    background-color: #fef2f2;
    border-radius: 6px;
    border-left: 3px solid #ef4444;
}

@media (max-width: 350px) {
    .login-card {
        padding: 1.25rem;
    }
}

/* Add responsive rules */
@media (max-width: 480px) {
    .login-card {
        padding: 1.75rem;
    }
    
    .login-header h1 {
        font-size: 1.4rem;
    }
    
    .login-header img {
        width: 50px;
        height: 50px;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .login-button {
        padding: 0.8rem;
    }
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 40px; /* Make space for the icon */
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
}

.toggle-password:hover {
    color: #333;
}

.remember-me {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.remember-me input {
    margin-right: 8px;
}

.password-requirements {
    background-color: #f8f9fa;
    border-left: 4px solid #0d6efd;
    padding: 10px 15px;
    margin: 10px 0;
    font-size: 14px;
}

.password-requirements ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.password-requirements li {
    margin: 5px 0;
}

.password-strength {
    margin-top: 5px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
}

.password-strength.valid {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.password-strength.invalid {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.error-requirement, .valid-requirement {
    margin: 2px 0;
}