/**
 * Light Talk Auth Pages CSS
 * Reusable styles for login, signup, password reset and other auth pages
 */

:root {
    --lt-primary: #1E3A8A;
    --lt-primary-light: #2563EB;
    --lt-primary-soft: #3B82F6;
    --lt-primary-pale: #DBEAFE;
    --lt-accent: #60A5FA;
    --lt-text-dark: #1E293B;
    --lt-text-body: #475569;
    --lt-text-muted: #64748B;
    --lt-shadow-glow: 0 0 30px rgba(37, 99, 235, 0.25);
    --lt-gradient-blue: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
}

/* ==========================================================================
   Auth Page Wrapper
   ========================================================================== */

.lt-auth-wrapper {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(180deg, #EFF6FF 0%, #ffffff 50%, #F8FAFC 100%);
}

/* ==========================================================================
   Left Side - Illustration Panel
   ========================================================================== */

.lt-auth-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.lt-auth-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.lt-auth-left::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.lt-auth-illustration {
    max-width: 85%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    animation: lt-float 6s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.lt-auth-tagline {
    text-align: center;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.lt-auth-tagline h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.lt-auth-tagline p {
    font-size: 1rem;
    opacity: 0.9;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes lt-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes lt-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lt-gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ==========================================================================
   Right Side - Form Panel
   ========================================================================== */

.lt-auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lt-auth-card {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px 48px;
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(30, 58, 138, 0.08);
    animation: lt-fadeInUp 0.6s ease-out;
}

/* ==========================================================================
   Logo & Header
   ========================================================================== */

.lt-auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.lt-auth-logo img {
    max-width: 200px;
    height: auto;
}

.lt-auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.lt-auth-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--lt-text-dark);
    margin-bottom: 8px;
}

.lt-auth-header p {
    color: var(--lt-text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

.lt-form-group {
    margin-bottom: 20px;
}

.lt-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lt-text-dark);
    margin-bottom: 8px;
}

.lt-form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    background: #F8FAFC;
    color: var(--lt-text-dark);
    transition: all 0.3s ease;
}

.lt-form-input:focus {
    outline: none;
    border-color: var(--lt-primary-soft);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.lt-form-input::placeholder {
    color: var(--lt-text-muted);
}

.lt-form-input.is-invalid {
    border-color: #EF4444;
}

.lt-input-group {
    position: relative;
}

.lt-input-group .lt-form-input {
    padding-right: 48px;
}

.lt-input-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--lt-text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.lt-input-toggle:hover {
    color: var(--lt-primary);
}

.lt-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/* ==========================================================================
   Checkbox & Links
   ========================================================================== */

.lt-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lt-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    accent-color: var(--lt-primary);
}

.lt-checkbox-label {
    font-size: 0.875rem;
    color: var(--lt-text-body);
}

.lt-forgot-link {
    font-size: 0.875rem;
    color: var(--lt-primary-soft);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.lt-forgot-link:hover {
    color: var(--lt-primary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.lt-btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--lt-gradient-blue);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--lt-shadow-glow);
}

.lt-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.35);
}

.lt-btn-google {
    width: 100%;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--lt-text-dark);
    background: #ffffff;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.lt-btn-google:hover {
    background: #F8FAFC;
    border-color: var(--lt-primary-pale);
    transform: translateY(-1px);
}

.lt-btn-google img {
    width: 22px;
    height: 22px;
}

/* ==========================================================================
   Divider
   ========================================================================== */

.lt-divider {
    display: flex;
    align-items: center;
    margin: 28px 0;
    color: var(--lt-text-muted);
    font-size: 0.875rem;
}

.lt-divider::before,
.lt-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E2E8F0;
}

.lt-divider span {
    padding: 0 16px;
}

/* ==========================================================================
   Footer Links
   ========================================================================== */

.lt-auth-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 0.95rem;
    color: var(--lt-text-body);
}

.lt-auth-footer a {
    color: var(--lt-primary-soft);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.lt-auth-footer a:hover {
    color: var(--lt-primary);
}

/* ==========================================================================
   Alerts
   ========================================================================== */

.lt-alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.lt-alert-danger {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
}

.lt-alert-success {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #16A34A;
}

.lt-alert-warning {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    color: #D97706;
}

.lt-alert-info {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #2563EB;
}

/* ==========================================================================
   Typography Utilities
   ========================================================================== */

.lt-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--lt-text-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.lt-gradient-text {
    background: var(--lt-gradient-blue);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: lt-gradient-shift 4s ease infinite;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991.98px) {
    .lt-auth-left {
        display: none;
    }

    .lt-auth-right {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .lt-auth-card {
        padding: 32px 24px;
    }

    .lt-auth-right {
        padding: 24px 16px;
    }
}

/* ==========================================================================
   Legacy class aliases (for backward compatibility)
   ========================================================================== */

.lt-login-wrapper {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(180deg, #EFF6FF 0%, #ffffff 50%, #F8FAFC 100%);
}

.lt-login-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.lt-login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.lt-login-left::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.lt-login-illustration {
    max-width: 85%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    animation: lt-float 6s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.lt-login-tagline {
    text-align: center;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.lt-login-tagline h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.lt-login-tagline p {
    font-size: 1rem;
    opacity: 0.9;
}

.lt-login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lt-login-card {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(30, 58, 138, 0.08);
    animation: lt-fadeInUp 0.6s ease-out;
}

.lt-login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.lt-login-logo img {
    max-width: 200px;
    height: auto;
}

.lt-login-header {
    text-align: center;
    margin-bottom: 32px;
}

.lt-login-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--lt-text-dark);
    margin-bottom: 8px;
}

.lt-login-header p {
    color: var(--lt-text-muted);
    font-size: 0.95rem;
}

.lt-btn-login {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--lt-gradient-blue);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--lt-shadow-glow);
}

.lt-btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.35);
}

.lt-signup-link {
    text-align: center;
    margin-top: 28px;
    font-size: 0.95rem;
    color: var(--lt-text-body);
}

.lt-signup-link a {
    color: var(--lt-primary-soft);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.lt-signup-link a:hover {
    color: var(--lt-primary);
}

@media (max-width: 991.98px) {
    .lt-login-left {
        display: none;
    }

    .lt-login-right {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .lt-login-card {
        padding: 32px 24px;
    }
}