/* cv_sync_app/static/login_style.css */
body.login-page {
    font-family: 'Rubik', sans-serif;
    background-color: #f0f2f5; /* Light greyish background */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: #333;
}

.login-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.login-logo-area {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.login-logo-area img {
    height: 40px; 
    width: 40px;
}

.login-logo-area h1 {
    font-size: 28px;
    font-weight: 600;
    color: #007bff; 
    margin: 0;
}

.login-container h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
}

.login-container .subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 30px;
}

.login-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #444;
}

/* Updated and more robust input styling */
.login-form input#email,
.login-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Rubik', sans-serif; /* Ensure font consistency */
    box-sizing: border-box;
    background-color: #ffffff; /* Explicitly set background to white */
    color: #333; /* Explicitly set text color */
    transition: border-color 0.3s, box-shadow 0.3s;
    -webkit-appearance: none; /* Attempt to remove default browser styling */
       -moz-appearance: none;
            appearance: none;
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
    border-color: #007bff; /* Highlight color on focus */
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); /* Softer, more modern focus ring */
}

/* Override browser autofill styles (primarily for WebKit-based browsers like Chrome/Safari) */
.login-form input:-webkit-autofill,
.login-form input:-webkit-autofill:hover, 
.login-form input:-webkit-autofill:focus, 
.login-form input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important; /* Force white background */
    -webkit-text-fill-color: #333 !important; /* Force text color */
    font-family: 'Rubik', sans-serif !important; /* Ensure font matches */
    /* transition: background-color 5000s ease-in-out 0s; /* Older trick, box-shadow is often better */
}

/* For Firefox, autofill styling is harder to override directly for background */
.login-form input:-moz-autofill, /* Check if Firefox uses this prefix */
.login-form input:-moz-autofill:hover,
.login-form input:-moz-autofill:focus,
.login-form input:-moz-autofill:active {
    box-shadow: 0 0 0 30px white inset !important; /* Try box-shadow trick for FF too */
    /* For Firefox, you might not be able to change the actual input background easily,
       but ensuring text color and font can help. */
    /* -moz-text-fill-color: #333 !important; */ /* May not have effect */
    /* font-family: 'Rubik', sans-serif !important; */
}


.login-form .password-wrapper {
    position: relative;
}

.login-form .toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    font-size: 18px; 
    padding: 0;
}
.login-form .toggle-password:hover {
    color: #555;
}


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

.login-form .remember-me {
    display: flex;
    align-items: center;
}

.login-form .remember-me input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: #007bff; 
}
.login-form .remember-me label {
    margin-bottom: 0; 
    font-weight: 400;
    color: #555;
}


.login-form .forgot-password a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}
.login-form .forgot-password a:hover {
    text-decoration: underline;
}

.login-form .btn-signin {
    background-color: #6a5af9; 
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}

.login-form .btn-signin:hover {
    background-color: #5445cc; 
}

.login-flashes {
    list-style-type: none;
    padding: 0;
    margin: 0 0 20px 0;
}
.login-flashes li {
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}
.login-flashes .danger { 
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.login-flashes .success { 
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-footer p {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0;
}

.login-footer a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Ensure Font Awesome is linked in your login.html or here if only used here */
/* @import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"); */
/* It's generally better to link Font Awesome in the HTML <head> */