/* assets/css/login.css */
/* Styling for Authentication Pages (Login/Register/Forgot) - Modern Blue Theme */

/* Use variables defined in dashboard.css or define them here */
:root {
    /* Base & Backgrounds */
    --sidebar-bg: #ffffff; /* Not used here directly */
    --content-bg: #f9fafb;
    --card-bg: #ffffff;

    /* Text */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --text-on-accent: #ffffff;

    /* Borders & Dividers */
    --border-color: #e5e7eb;

    /* --- Primary Accent (Modern Blue) --- */
    --primary-accent: #3b82f6; /* Tailwind Blue 500 */
    --primary-accent-hover: #2563eb; /* Tailwind Blue 600 */
    --primary-accent-light-bg: #eff6ff; /* Tailwind Blue 50 */
    --primary-accent-focus-ring: rgba(59, 130, 246, 0.25);

    /* Other */
    --card-shadow: rgba(0, 0, 0, 0.05);
    --heading-color: var(--text-primary);
    --input-border-color: #ced4da;
    --input-focus-border-color: var(--primary-accent);
}


body {
    /* Using Poppins based on previous update */
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--content-bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Auth Page Specific Layout --- */
.auth-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: var(--card-bg); /* White background for the main split */
}

.left-column {
    flex-basis: 50%;
    background-color: #e9ecef; /* Placeholder background */
    background-size: cover;
    background-position: center;
    position: relative; /* Needed for absolute positioning of dots */
    transition: background-image 0.8s ease-in-out; /* Smooth transition for background */
}

.right-column {
    flex-basis: 50%;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    overflow-y: auto;
}

.top-nav {
    text-align: right;
    margin-bottom: 30px;
    font-size: 0.9em;
    flex-shrink: 0;
    color: var(--text-secondary);
}

.top-nav a {
    text-decoration: none;
    color: var(--primary-accent); /* Use Blue */
    margin-left: 10px;
    padding: 6px 12px;
    border: 1px solid var(--primary-accent); /* Use Blue */
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.top-nav a:hover {
    background-color: var(--primary-accent); /* Use Blue */
    color: var(--text-on-accent); /* White text */
}

.auth-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 25px;
    align-self: flex-start;
    flex-shrink: 0;
}

.auth-form {
    width: 100%;
}

.auth-form h1 {
    font-size: 1.9em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.auth-form p.subtitle {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 35px;
}

.form-group {
    margin-bottom: 22px;
    max-width: 600px; /* Apply max-width here if desired */
}

.form-group label {
    display: block;
    font-size: 0.88em;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

/* Base styles for MOST inputs within a form-group */
.form-group input[type="email"],
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--input-border-color);
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 0; /* Let form-group handle bottom margin */
    font-family: inherit;
    line-height: inherit;
    color: var(--text-primary);
}
/* Specific style needed for password input is handled within .password-wrapper */


/* --- Password Toggle Styles --- */
.password-wrapper {
    position: relative;
    width: 100%; /* Make wrapper take full width */
    box-sizing: border-box;
    /* max-width: 600px; /* Apply max-width here if not on form-group */
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
     /* Inherit base styles */
     width: 100%;
     padding: 14px 45px 14px 16px; /* Adjust right padding */
     border: 1px solid var(--input-border-color);
     border-radius: 6px;
     font-size: 1em;
     box-sizing: border-box;
     transition: border-color 0.2s ease, box-shadow 0.2s ease;
     margin-bottom: 0;
     font-family: inherit;
     line-height: inherit;
     color: var(--text-primary);
}

.password-toggle-btn {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 1px;
    height: calc(100% - 2px);
    width: 40px;
    background: none;
    border: none;
    padding: 0 5px;
    margin: 1px 0;
    cursor: pointer;
    color: #aaa; /* Icon color */
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
}
.password-toggle-btn:hover {
    color: #666;
}
.password-toggle-btn i {
    pointer-events: none;
}
/* --- End Password Toggle Styles --- */


/* Focus state for inputs */
.form-group input:focus,
.password-wrapper input:focus,
.form-group textarea:focus,
.form-group select:focus {
     border-color: var(--input-focus-border-color); /* Use Blue */
     box-shadow: 0 0 0 2px var(--primary-accent-focus-ring); /* Use Blue */
     outline: none;
}
.password-wrapper input:focus + .password-toggle-btn {
    color: var(--primary-accent); /* Use Blue */
}


.auth-button {
    width: 100%;
    max-width: 600px; /* Match input max-width */
    padding: 14px 16px;
    background-color: var(--primary-accent); /* Use Blue */
    color: var(--text-on-accent); /* White */
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    margin-top: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-family: inherit; /* Ensure button font matches */
}

.auth-button:hover {
    background-color: var(--primary-accent-hover); /* Use Blue */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.auth-button:disabled {
    background-color: #93c5fd; /* Lighter Blue */
    cursor: not-allowed;
    box-shadow: none;
}

/* Message Styles */
#form-message, /* For registration */
#login-form-message /* For login */
{
    margin: 15px 0;
    padding: 10px;
    font-size: 0.9em;
    text-align: center;
    border-radius: 4px;
    display: none; /* Initially hidden */
    word-wrap: break-word;
    max-width: 600px; /* Match input width */
    box-sizing: border-box;
    border: 1px solid transparent;
}
#form-message.success,
#login-form-message.success {
    color: #155724; background-color: #d4edda; border-color: #c3e6cb; display: block;
}
#form-message.error,
#login-form-message.error {
    color: #721c24; background-color: #f8d7da; border-color: #f5c6cb; display: block;
}
#form-message.info,
#login-form-message.info {
     color: #0c5460; background-color: #d1ecf1; border-color: #bee5eb; display: block;
}
/* Allow HTML links in error messages */
#form-message a,
#login-form-message a {
    color: inherit; /* Match message text color */
    font-weight: bold;
    text-decoration: underline;
}
#form-message a:hover,
#login-form-message a:hover {
    text-decoration: none;
}


.recaptcha-container {
    margin-top: 25px;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    max-width: 600px; /* Match input width */
}

.bottom-menu {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    flex-shrink: 0;
}

.bottom-menu a {
    font-size: 0.8em;
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 12px;
    transition: color 0.2s ease;
}

 .bottom-menu a:hover {
    color: var(--heading-color);
    text-decoration: underline;
 }

 /* Hide step 2 initially for register/login */
 #step-2, #login-step-2 { display: none; }

 /* Forgot Password Link Style */
 .forgot-password-link {
    text-align: right;
    font-size: 0.85em;
    margin-top: 8px;
    margin-bottom: 15px;
    max-width: 600px; /* Match input width */
 }
 .forgot-password-link a {
     color: var(--text-secondary);
     text-decoration: underline;
 }
  .forgot-password-link a:hover {
      color: var(--primary-accent); /* Use Blue */
  }

/* --- Slider Styles --- */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
    background-color: rgba(255, 255, 255, 1);
}
/* --- End Slider Styles --- */


 /* Responsive Adjustments */
 @media (max-width: 992px) {
    .auth-container { flex-direction: column; }
    .left-column {
        min-height: 250px; /* Give some height when stacked */
        flex-basis: auto;
        /* Optionally hide completely on mobile */
        /* display: none; */
    }
    .right-column { flex-basis: auto; padding: 30px; }
    .auth-form h1 { font-size: 1.6em; }
    .auth-form p.subtitle { font-size: 0.9em; margin-bottom: 25px;}
    .form-group, .password-wrapper, .auth-button, .recaptcha-container, .forgot-password-link { max-width: 100%; }
 }

  @media (max-width: 576px) {
     .right-column { padding: 20px; }
     .left-column { min-height: 200px; } /* Reduce height further */
     .bottom-menu { flex-direction: column; }
     .bottom-menu a { margin: 5px 0; }
     .auth-form h1 { font-size: 1.5em; }
  }

/* --- Styles for simple auth pages like forgot password --- */
.auth-container.simple-page { display: flex; justify-content: center; align-items: flex-start; padding: 50px 20px; min-height: auto; background-color: transparent; }
.auth-form-container { background-color: var(--card-bg); padding: 40px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); max-width: 450px; width: 100%; text-align: center; }
.auth-form-container h2 { margin-bottom: 15px; font-size: 1.6em; color: var(--heading-color); }
.auth-form-container .auth-logo { display: inline-block; margin-left: auto; margin-right: auto; }
/* Link-style button */
.button-link { background: none; border: none; color: var(--primary-accent); text-decoration: underline; padding: 5px; cursor: pointer; }
.button-link:hover { color: var(--primary-accent-hover); }

