/* =====================================================
   🔐 AUTHENTICATION PAGES STYLING
===================================================== */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--auth-bg, radial-gradient(circle at center, #1a1a1a 0%, #0d0d0d 100%));
    position: relative;
    overflow: hidden;
}

/* Background Pattern */
.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(9, 114, 211, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(9, 114, 211, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(9, 114, 211, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.auth-card {
    background: var(--auth-card-bg, #111111);
    border: var(--auth-card-border, 1px solid rgba(9, 114, 211, 0.1));
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--auth-card-shadow, 0 20px 40px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo {
    margin-bottom: 1.5rem;
}

.auth-logo .logo-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--auth-logo-color, #ffffff);
    letter-spacing: -1px;
}

.auth-logo .logo-accent {
    background: linear-gradient(135deg, #0972d3, #ff9900);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--auth-title-color, #ffffff);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    color: var(--auth-subtitle-color, #b0b0b0);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Auth Form */
.auth-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--form-label-color, #f0f0f0);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-label i {
    color: #0972d3;
    width: 16px;
    text-align: center;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--form-input-bg, #1a1a1a);
    border: var(--form-input-border, 1px solid rgba(9, 114, 211, 0.2));
    border-radius: 12px;
    color: var(--form-input-color, #ffffff);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #0972d3;
    box-shadow: 0 0 0 3px rgba(9, 114, 211, 0.2);
    background: var(--form-input-focus-bg, #1a1a1a);
}

.form-input::placeholder {
    color: var(--form-placeholder-color, rgba(255, 255, 255, 0.5));
}

.form-error {
    color: var(--form-error-color, #ff6b6b);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-error::before {
    content: '⚠';
    font-size: 0.8rem;
}

/* Auth Button */
.auth-button {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #ff9900 0%, #e6850e 100%);
    border: none;
    border-radius: 12px;
    color: #000000;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.auth-button:hover {
    background: linear-gradient(135deg, #e6850e, #cc7a0e);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 153, 0, 0.3);
}

.auth-button:active {
    transform: translateY(0);
}

.auth-button i {
    font-size: 1.1rem;
}

/* Auth Messages */
.auth-messages {
    margin-bottom: 1.5rem;
}

.auth-message {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.auth-message-success {
    background: linear-gradient(135deg, rgba(9, 114, 211, 0.1), rgba(9, 114, 211, 0.05));
    color: #0972d3;
    border: 1px solid rgba(9, 114, 211, 0.2);
}

.auth-message-error {
    background: var(--message-error-bg, rgba(255, 107, 107, 0.1));
    color: var(--message-error-color, #ff6b6b);
    border: 1px solid var(--message-error-border, rgba(255, 107, 107, 0.2));
}

.auth-message-info {
    background: var(--message-info-bg, rgba(9, 114, 211, 0.1));
    color: var(--message-info-color, #0972d3);
    border: 1px solid var(--message-info-border, rgba(9, 114, 211, 0.2));
}

.auth-error {
    background: var(--auth-error-bg, rgba(255, 107, 107, 0.1));
    color: var(--auth-error-color, #ff6b6b);
    border: 1px solid var(--auth-error-border, rgba(255, 107, 107, 0.2));
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
}

.auth-footer-text {
    color: var(--auth-footer-color, #b0b0b0);
    font-size: 0.9rem;
    margin: 0;
}

.auth-link {
    color: #0972d3;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-link:hover {
    color: #085cb6;
    text-decoration: underline;
}

/* =====================================================
   🌞 LIGHT THEME OVERRIDES
===================================================== */

body.light .auth-container {
    background: var(--auth-light-bg, #f8f9fa);
}

body.light .auth-card {
    background: var(--auth-light-card-bg, #ffffff);
    border: var(--auth-light-card-border, 1px solid #e1e5e9);
    box-shadow: var(--auth-light-card-shadow, 0 10px 30px rgba(0, 0, 0, 0.1));
}

body.light .auth-logo .logo-text {
    color: var(--auth-light-logo-color, #2c3e50);
}

body.light .auth-logo .logo-accent {
    background: linear-gradient(135deg, #0972d3, #ff9900);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light .auth-title {
    color: var(--auth-light-title-color, #2c3e50);
}

body.light .auth-subtitle {
    color: var(--auth-light-subtitle-color, #6c757d);
}

body.light .form-label {
    color: var(--auth-light-label-color, #495057);
}

body.light .form-label i {
    color: #0972d3;
}

body.light .form-input {
    background: var(--auth-light-input-bg, #ffffff);
    border: var(--auth-light-input-border, 1px solid #ced4da);
    color: var(--auth-light-input-color, #495057);
}

body.light .form-input:focus {
    border-color: #0972d3;
    box-shadow: 0 0 0 3px rgba(9, 114, 211, 0.2);
}

body.light .form-input::placeholder {
    color: var(--auth-light-placeholder-color, #6c757d);
}

body.light .auth-button {
    background: linear-gradient(135deg, #ff9900 0%, #e6850e 100%);
    color: #000000;
}

body.light .auth-button:hover {
    background: linear-gradient(135deg, #e6850e, #cc7a0e);
    box-shadow: 0 10px 25px rgba(255, 153, 0, 0.3);
}

body.light .auth-message-success {
    background: linear-gradient(135deg, rgba(9, 114, 211, 0.1), rgba(9, 114, 211, 0.05));
    color: #0972d3;
    border: 1px solid rgba(9, 114, 211, 0.2);
}

body.light .auth-link {
    color: #0972d3;
}

body.light .auth-link:hover {
    color: #085cb6;
}

body.light .auth-footer {
    color: var(--auth-light-footer-color, #6c757d);
}

body.light .auth-footer-text {
    color: var(--auth-light-footer-text-color, #6c757d);
}

/* =====================================================
   📱 RESPONSIVE DESIGN
===================================================== */

@media (max-width: 768px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 2rem;
        max-width: 400px;
    }
    
    .auth-logo .logo-text {
        font-size: 2rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .form-input {
        padding: 0.875rem 1rem;
    }
    
    .auth-button {
        padding: 0.875rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .auth-logo .logo-text {
        font-size: 1.75rem;
    }
    
    .auth-title {
        font-size: 1.25rem;
    }
    
    .auth-subtitle {
        font-size: 0.9rem;
    }
}

.show-password-toggle {
    position: absolute;
    top: 50%;
    right: 1.25rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #0972d3;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.form-group input[type="password"] {
    padding-right: 2.5rem;
} 

/* Password field group for eye icon */
.password-field-group {
  position: relative;
  width: 100%;
}

.password-field-group .form-input {
  padding-right: 2.5rem;
  box-sizing: border-box;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  cursor: pointer;
  color: #888;
  font-size: 1.1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
}

.toggle-password:hover {
  color: #0073bb;
} 