/* ==========================================================================
   Trail Hilight - Premium Authentication Stylesheet
   ========================================================================== */

:root {

    /* Brand Colors */
    --th-emerald-primary: #10b981;
    --th-emerald-hover: #059669;
    --th-emerald-dark: #047857;
    --th-emerald-light: #34d399;
    --th-emerald-glow: rgba(16, 185, 129, 0.35);
    --th-emerald-soft: rgba(16, 185, 129, 0.1);
    --th-emerald-border: rgba(16, 185, 129, 0.25);

    /* Neutrals & Surfaces */
    --th-bg-deep: #07090e;
    --th-bg-card: rgba(15, 20, 31, 0.85);
    --th-bg-card-solid: #0f141f;
    --th-bg-input: rgba(22, 29, 44, 0.7);
    --th-bg-input-focus: rgba(26, 34, 52, 0.95);
    --th-border-subtle: rgba(255, 255, 255, 0.08);
    --th-border-active: rgba(16, 185, 129, 0.5);
    --th-border-hover: rgba(255, 255, 255, 0.18);

    /* Typography */
    --th-text-heading: #ffffff;
    --th-text-body: #e2e8f0;
    --th-text-secondary: #94a3b8;
    --th-text-muted: #64748b;

    /* Status Colors */
    --th-error-bg: #991b1b;
    --th-error-border: #7f1d1d;
    --th-error-text: #ffffff;
    --th-success-bg: #065f46;
    --th-success-border: #047857;
    --th-success-text: #ffffff;

    /* Shadows */
    --th-shadow-card: 0 25px 60px -15px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --th-shadow-btn: 0 10px 25px -5px rgba(16, 185, 129, 0.4), 0 4px 10px -2px rgba(16, 185, 129, 0.25);
    --th-shadow-input: 0 2px 6px rgba(0, 0, 0, 0.3) inset;
}

.auth-section {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px;
    overflow: hidden;
    font-family: var(--th-font-sans);
    color: var(--th-text-body);
    box-sizing: border-box;
}

/* Ambient Floating Glow Orbs */
.auth-glow-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(90px);
    z-index: 0;
    opacity: 0.6;
    animation: orbFloat 14s ease-in-out infinite alternate;
}

.auth-glow-orb.top-right {
    top: -10%;
    right: -5%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, rgba(16, 185, 129, 0) 70%);
}

.auth-glow-orb.bottom-left {
    bottom: -10%;
    left: -5%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.16) 0%, rgba(14, 165, 233, 0) 70%);
    animation-duration: 18s;
    animation-direction: alternate-reverse;
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(25px, 20px) scale(1.08);
    }

    100% {
        transform: translate(-20px, 35px) scale(0.95);
    }
}

/* Main Auth Grid / Container */
.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
}

.auth-grid-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Showcase / Hero Panel (Left Column) */
.auth-showcase-panel {
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 520px;
}

.auth-showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: #34d399;
    letter-spacing: 0.02em;
    width: fit-content;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.auth-showcase-badge .badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.85);
    }
}

.auth-showcase-title {
    font-size: 40px;
    line-height: 1.18;
    font-weight: 800;
    color: var(--th-text-heading);
    letter-spacing: -0.03em;
    margin: 0 0 18px;
}

.auth-showcase-title .gradient-text {
    background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #6ee7b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-showcase-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--th-text-secondary);
    margin: 0 0 32px;
    max-width: 440px;
}

/* Feature Bullet Points */
.auth-feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--black-600);
}

.auth-feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34d399;
    flex-shrink: 0;
}

/* User Testimonial Card */
.auth-trust-card {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(12px);
}

.auth-trust-avatar-group {
    display: flex;
    align-items: center;
}

.auth-trust-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--th-bg-deep);
    margin-left: -8px;
    background-size: cover;
    background-position: center;
}

.auth-trust-avatar:first-child {
    margin-left: 0;
}

.auth-trust-text {
    font-size: 13px;
    color: var(--th-text-secondary);
    line-height: 1.4;
}


/* Card Box (Right Column) */
.auth-card {
    position: relative;
    background: var(--th-bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--th-border-subtle);
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: var(--th-shadow-card);
    box-sizing: border-box;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.auth-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(16, 185, 129, 0.2), rgba(255, 255, 255, 0.02));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.auth-header {
    margin-bottom: 28px;
}

.auth-logo-badge {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(6, 182, 212, 0.12));
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.25);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-logo-badge:hover {
    transform: translateY(-2px) scale(1.05);
}

.auth-logo-badge img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.auth-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--th-text-heading);
    letter-spacing: -0.025em;
    margin: 0 0 8px;
}

.auth-subtitle {
    font-size: 14px;
    line-height: 1.5;
    color: var(--th-text-secondary);
    margin: 0;
}

/* Alerts / Notifications */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 24px;
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

.auth-alert svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.auth-alert.error {
    background: #991b1b;
    border: 1px solid #7f1d1d;
    color: #ffffff;
}

.auth-alert.error svg {
    color: #fca5a5;
}

.auth-alert.success {
    background: #065f46;
    border: 1px solid #047857;
    color: #ffffff;
}

.auth-alert.success svg {
    color: #6ee7b7;
}

/* Form Styles */
.auth-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.auth-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 16px;
    color: var(--th-text-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.auth-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: var(--th-bg-input);
    border: 1px solid var(--th-border-subtle);
    border-radius: 12px;
    font-size: 15px;
    color: var(--th-text-heading);
    font-family: inherit;
    outline: none;
    transition: all 0.25s ease;
    box-shadow: var(--th-shadow-input);
    box-sizing: border-box;
}

.auth-input::placeholder {
    color: #64748b;
}

.auth-input:focus {
    background: var(--th-bg-input-focus);
    border-color: var(--th-emerald-primary);
    box-shadow: 0 0 0 3px var(--th-emerald-glow), var(--th-shadow-input);
}

.auth-input:focus+.auth-input-icon,
.auth-input-wrapper:focus-within .auth-input-icon {
    color: var(--th-emerald-primary);
}

button[type="submit"],
input[type="submit"],
.auth-btn-primary {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: #000;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.auth-btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

button[type="submit"]:hover:not(:disabled),
input[type="submit"]:hover:not(:disabled),
.auth-btn-primary:hover:not(:disabled) {
    background: #0C0A09;
    transform: translateY(-2px);
}

.auth-btn-primary:hover:not(:disabled)::after {
    left: 100%;
}

.auth-btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.auth-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Spinner Icon */
.auth-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--th-text-muted);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--th-border-subtle), transparent);
}

.auth-divider span {
    padding: 0 14px;
}

/* Google Sign-in Button */
.google-signin-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: var(--th-text-heading);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.google-signin-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.google-signin-btn:active {
    transform: translateY(0);
}

.google-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* OTP Segmented Inputs */
.otp-container {
    margin-bottom: 24px;
}

.otp-inputs-grid {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 18px 0;
}

.otp-digit-box {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    background: var(--th-bg-input);
    border: 1.5px solid var(--th-border-subtle);
    border-radius: 12px;
    outline: none;
    font-family: monospace, var(--th-font-sans);
    transition: all 0.2s ease;
    box-shadow: var(--th-shadow-input);
    padding: 0;
    box-sizing: border-box;
}

.otp-digit-box:focus {
    background: var(--th-bg-input-focus);
    border-color: var(--th-emerald-primary);
    box-shadow: 0 0 0 3px var(--th-emerald-glow);
    transform: translateY(-2px);
}

.otp-digit-box.filled {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
}

/* Target Email Badge in OTP Screen */
.otp-target-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.otp-target-pill strong {
    color: var(--th-emerald-light);
    font-weight: 600;
}

.otp-change-email-btn {
    color: var(--th-text-secondary);
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
    margin-left: 4px;
}

.otp-change-email-btn:hover {
    color: #ffffff;
}

/* Auth Footer */
.auth-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--th-border-subtle);
    text-align: center;
    font-size: 13.5px;
    color: var(--th-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.auth-link {
    color: var(--th-emerald-light);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.auth-link:hover {
    color: #6ee7b7;
    text-decoration: underline;
}

.auth-resend-wrap {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--th-text-muted);
}

.auth-resend-btn {
    background: none;
    border: none;
    color: var(--th-emerald-light);
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-resend-btn:hover:not(:disabled) {
    color: #6ee7b7;
    text-decoration: underline;
}

.auth-resend-btn:disabled {
    color: var(--th-text-muted);
    cursor: not-allowed;
}

.auth-countdown-text {
    color: var(--th-text-secondary);
    font-variant-numeric: tabular-nums;
}

/* Security / Trust Badge */
.auth-security-badge {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--th-text-muted);
}

.auth-security-badge svg {
    color: #10b981;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
    .auth-grid-split {
        grid-template-columns: 1fr;
        max-width: 520px;
        gap: 32px;
    }

    .auth-showcase-panel {
        min-height: auto;
        padding: 0 10px;
        text-align: center;
        align-items: center;
    }

    .auth-showcase-description {
        margin-left: auto;
        margin-right: auto;
    }

    .auth-feature-list {
        display: none;
    }

    .auth-trust-card {
        display: none;
    }

    .auth-showcase-title {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .auth-section {
        padding: 24px 16px;
    }

    .auth-card {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .auth-title {
        font-size: 22px;
    }

    .otp-inputs-grid {
        gap: 6px;
    }

    .otp-digit-box {
        width: 40px;
        height: 48px;
        font-size: 18px;
        border-radius: 10px;
    }
}

.auth-section-centered {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.auth-container-single {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.auth-card-white {
    position: relative;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 40px 36px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease;
}

.auth-card-white::before {
    display: none !important;
}

.auth-card-white .auth-title,
.auth-card-white .value-top-title {
    color: #0f172a !important;
}

.auth-card-white .auth-subtitle {
    color: #64748b !important;
}

.auth-card-white .auth-label {
    color: #334155 !important;
}

.auth-card-white .auth-input-wrapper {
    position: relative;
}

.auth-card-white .auth-input-icon {
    color: #94a3b8 !important;
}

.auth-card-white .auth-input {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: none !important;
}

.auth-card-white .auth-input::placeholder {
    color: #94a3b8 !important;
}

.auth-card-white .auth-input:focus {
    background: #ffffff !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

.auth-card-white .auth-input:focus+.auth-input-icon,
.auth-card-white .auth-input-wrapper:focus-within .auth-input-icon {
    color: #10b981 !important;
}

.auth-card-white .google-signin-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.auth-card-white .google-signin-btn:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
}

.auth-card-white .auth-divider {
    color: #94a3b8 !important;
}

.auth-card-white .auth-divider::before,
.auth-card-white .auth-divider::after {
    background: #e2e8f0 !important;
}

.auth-card-white .auth-footer {
    border-top: 1px solid #f1f5f9 !important;
    color: #64748b !important;
}

.auth-card-white .auth-link {
    color: #059669 !important;
}

.auth-card-white .auth-link:hover {
    color: #047857 !important;
}

.auth-card-white .auth-security-badge {
    color: #64748b !important;
}

.auth-card-white .otp-digit-box {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: none !important;
}

.auth-card-white .otp-digit-box:focus {
    background: #ffffff !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

.auth-card-white .otp-digit-box.filled {
    background: rgba(16, 185, 129, 0.06) !important;
    border-color: #10b981 !important;
}

.auth-card-white .otp-target-pill {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

.auth-card-white .otp-target-pill strong {
    color: #059669 !important;
}

.auth-card-white .otp-change-email-btn {
    color: #64748b !important;
}

.auth-card-white .otp-change-email-btn:hover {
    color: #0f172a !important;
}

.auth-card-white .auth-alert.error {
    background: #991b1b !important;
    border: 1px solid #7f1d1d !important;
    color: #ffffff !important;
}

.auth-card-white .auth-alert.error svg {
    color: #fca5a5 !important;
}

.auth-card-white .auth-alert.success {
    background: #065f46 !important;
    border: 1px solid #047857 !important;
    color: #ffffff !important;
}

.auth-card-white .auth-alert.success svg {
    color: #6ee7b7 !important;
}

.auth-card-white button[type="submit"],
.auth-card-white input[type="submit"],
.auth-card-white .auth-btn-primary {
    background: #000 !important;
    color: #ffffff !important;
}

.auth-card-white button[type="submit"]:hover:not(:disabled),
.auth-card-white input[type="submit"]:hover:not(:disabled),
.auth-card-white .auth-btn-primary:hover:not(:disabled) {
    background: #0C0A09 !important;
    color: #ffffff !important;
}

.gotowebsite {
    text-align: center;
    margin-top: 20px;
}