/* GQNET Auth — full-screen split layout */
:root {
    --gq-navy: #0c1f3d;
    --gq-navy-deep: #081528;
    --gq-gold: #a8862e;
    --gq-gold-hover: #967622;
    --gq-gold-light: #d4b86a;
    --gq-text-muted: #64748b;
    --gq-border: #e2e8f0;
    --gq-bg: #f8fafc;
    --gq-white: #ffffff;
    --gq-hero-w: min(46vw, 560px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.gq-auth-page {
    margin: 0;
    min-height: 100dvh;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--gq-navy);
    background: var(--gq-bg);
    display: flex;
    flex-direction: column;
}

body.gq-auth-page .gq-topbar {
    flex-shrink: 0;
}

/* Full-screen split below menu bar */
.gq-auth-split {
    display: flex;
    flex: 1;
    min-height: 0;
    width: 100%;
}

/* Left hero panel */
.gq-auth-hero {
    position: relative;
    flex: 0 0 var(--gq-hero-w);
    min-height: 100%;
    background:
        linear-gradient(145deg, rgba(8, 21, 40, 0.92) 0%, rgba(12, 31, 61, 0.88) 45%, rgba(20, 45, 82, 0.9) 100%),
        url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1200&q=80') center / cover no-repeat;
    color: #fff;
    overflow: hidden;
}

.gq-auth-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(168, 134, 46, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 80% 20%, rgba(74, 143, 212, 0.12) 0%, transparent 40%);
    pointer-events: none;
}

.gq-auth-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.gq-auth-hero__brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
}

.gq-auth-hero__logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
}

.gq-auth-hero__brand-text {
    display: flex;
    flex-direction: column;
}

.gq-auth-hero__brand-text strong {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.gq-auth-hero__brand-text small {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.gq-auth-hero__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
    max-width: 420px;
}

.gq-auth-hero__title {
    margin: 0 0 1rem;
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.gq-auth-hero__title span {
    display: block;
    color: var(--gq-gold-light);
}

.gq-auth-hero__lead {
    margin: 0 0 2rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
}

.gq-auth-hero__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.gq-auth-hero__features li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.gq-auth-hero__feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(168, 134, 46, 0.2);
    color: var(--gq-gold-light);
}

.gq-auth-hero__features strong {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.gq-auth-hero__features p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.65);
}

.gq-auth-hero__footnote {
    margin: 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.02em;
}

/* Right form panel */
.gq-auth-panel {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--gq-bg);
}

.gq-auth-panel__main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    overflow-y: auto;
}

.gq-auth-panel__foot {
    flex-shrink: 0;
    padding: 0.85rem 1.5rem 1.25rem;
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
}

.gq-auth-form-wrap {
    width: 100%;
    max-width: 520px;
}

.gq-auth-form-wrap--login {
    max-width: 560px;
}

.gq-auth-page--register .gq-auth-form-wrap,
.gq-auth-page--trainer-register .gq-auth-form-wrap {
    max-width: 640px;
}

/* Card */
.gq-candidate-login-card {
    width: 100%;
    background: var(--gq-white);
    border-radius: 12px;
    border-left: 4px solid var(--gq-gold);
    box-shadow:
        0 1px 2px rgba(12, 31, 61, 0.04),
        0 8px 32px rgba(12, 31, 61, 0.08),
        0 24px 48px rgba(12, 31, 61, 0.04);
    padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.25rem);
}

.gq-candidate-login-card--wide {
    border-radius: 12px;
}

.gq-candidate-login-card__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3.5vw, 1.875rem);
    font-weight: 700;
    color: var(--gq-navy);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.gq-candidate-login-card__subtitle {
    margin: 0 0 1.75rem;
    font-size: 0.875rem;
    color: var(--gq-text-muted);
    line-height: 1.65;
}

/* Form fields */
.gq-candidate-login-field {
    margin-bottom: 1.15rem;
}

.gq-candidate-login-field label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gq-navy);
}

.gq-candidate-login-input {
    position: relative;
    display: flex;
    align-items: center;
}

.gq-candidate-login-input__icon {
    position: absolute;
    left: 0.95rem;
    color: var(--gq-text-muted);
    pointer-events: none;
}

.gq-candidate-login-input input {
    width: 100%;
    padding: 0.8rem 2.75rem 0.8rem 2.65rem;
    border: 1.5px solid var(--gq-border);
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--gq-navy);
    background: #fafbfc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.gq-candidate-login-input input:hover {
    border-color: #cbd5e1;
}

.gq-candidate-login-input input:focus {
    outline: none;
    border-color: var(--gq-gold);
    background: var(--gq-white);
    box-shadow: 0 0 0 3px rgba(168, 134, 46, 0.15);
}

.gq-candidate-login-input input::placeholder {
    color: #94a3b8;
}

.gq-candidate-login-input__toggle {
    position: absolute;
    right: 0.75rem;
    display: flex;
    align-items: center;
    padding: 0.25rem;
    border: none;
    background: none;
    color: var(--gq-text-muted);
    cursor: pointer;
    border-radius: 4px;
}

.gq-candidate-login-input__toggle:hover {
    color: var(--gq-navy);
    background: rgba(12, 31, 61, 0.05);
}

.gq-candidate-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.gq-candidate-login-remember {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8125rem;
    color: var(--gq-text-muted);
    cursor: pointer;
}

.gq-candidate-login-remember input {
    accent-color: var(--gq-gold);
}

.gq-candidate-login-forgot {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gq-gold);
    text-decoration: none;
    white-space: nowrap;
}

.gq-candidate-login-forgot:hover {
    text-decoration: underline;
}

.gq-candidate-login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem 1rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(180deg, #b89438 0%, var(--gq-gold) 100%);
    color: var(--gq-white);
    font-size: 0.9375rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(168, 134, 46, 0.35);
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.gq-candidate-login-submit:hover {
    background: linear-gradient(180deg, var(--gq-gold) 0%, var(--gq-gold-hover) 100%);
    box-shadow: 0 6px 20px rgba(168, 134, 46, 0.4);
    transform: translateY(-1px);
}

.gq-candidate-login-submit:active {
    transform: translateY(0);
}

.gq-candidate-login-submit svg {
    flex-shrink: 0;
}

/* Footer / register options */
.gq-candidate-login-footer {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gq-border);
}

.gq-candidate-login-footer__lead {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gq-navy);
    text-align: center;
}

.gq-login-register-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: stretch;
}

.gq-login-register-option {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.1rem;
    border: 1.5px solid var(--gq-border);
    border-radius: 10px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    text-align: left;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gq-login-register-option:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(12, 31, 61, 0.06);
}

.gq-login-register-option--trainer {
    border-color: #e8d9b8;
    background: linear-gradient(180deg, #fffdf8 0%, #faf6ee 100%);
}

.gq-login-register-option--trainer:hover {
    border-color: var(--gq-gold-light);
}

.gq-login-register-option--provider {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
}

.gq-login-register-option--provider:hover {
    border-color: #60a5fa;
}

.gq-login-register-option__badge {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.22rem 0.55rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #dbeafe;
    color: #1d4ed8;
}

.gq-login-register-option__badge--trainer {
    background: #fef3c7;
    color: #92400e;
}

.gq-login-register-option__badge--provider {
    background: #dbeafe;
    color: #1e40af;
}

.gq-login-register-option__title {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gq-navy);
    margin-bottom: 0.35rem;
    line-height: 1.35;
    min-height: 2.4em;
}

.gq-login-register-option__text {
    flex: 1;
    margin: 0 0 0.85rem;
    font-size: 0.75rem;
    line-height: 1.55;
    color: var(--gq-text-muted);
}

.gq-login-register-option__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.875rem;
    margin-top: auto;
    padding: 0.65rem 0.75rem;
    border: 1.5px solid var(--gq-navy);
    border-radius: 6px;
    background: #fff;
    color: var(--gq-navy);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

.gq-login-register-option__btn:hover {
    background: var(--gq-navy);
    color: #fff;
    transform: translateY(-1px);
}

.gq-login-register-option__btn--trainer {
    border-color: var(--gq-gold);
    color: #7c5e10;
}

.gq-login-register-option__btn--trainer:hover {
    background: var(--gq-gold);
    color: #fff;
}

.gq-login-register-option__btn--provider {
    border-color: #2563eb;
    color: #1d4ed8;
}

.gq-login-register-option__btn--provider:hover {
    background: #2563eb;
    color: #fff;
}

/* Auth badges (register pages) */
.gq-auth-badge {
    display: inline-block;
    margin-bottom: 0.65rem;
    padding: 0.28rem 0.65rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.gq-auth-badge--candidate {
    background: #dbeafe;
    color: #1d4ed8;
}

.gq-auth-badge--trainer {
    background: #fef3c7;
    color: #92400e;
}

.gq-auth-badge--provider {
    background: #dbeafe;
    color: #1e40af;
}

.gq-auth-alt-link {
    margin: 0.75rem 0 0;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--gq-text-muted);
}

.gq-auth-alt-link a {
    color: var(--gq-gold);
    font-weight: 600;
    text-decoration: none;
}

.gq-auth-alt-link a:hover {
    text-decoration: underline;
}

/* Legacy aliases */
body.gq-candidate-login-page {
    margin: 0;
    min-height: 100dvh;
}

.gq-candidate-register {
    width: 100%;
    max-width: none;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --gq-hero-w: 42vw;
    }
}

@media (max-width: 900px) {
    .gq-auth-split {
        flex-direction: column;
    }

    .gq-auth-hero {
        flex: none;
        min-height: auto;
        width: 100%;
    }

    .gq-auth-hero__content {
        min-height: auto;
    }

    .gq-auth-hero__body {
        padding: 1.5rem 0;
        max-width: none;
    }

    .gq-auth-hero__features {
        display: none;
    }

    .gq-auth-hero__title {
        font-size: 1.5rem;
    }

    .gq-auth-hero__lead {
        margin-bottom: 0;
        font-size: 0.875rem;
    }

    .gq-auth-panel {
        min-height: auto;
    }

    .gq-auth-panel__main {
        align-items: flex-start;
        padding-top: 1.5rem;
    }
}

@media (max-width: 960px) {
    .gq-login-register-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .gq-login-register-options {
        grid-template-columns: 1fr;
    }

    .gq-candidate-login-options {
        flex-wrap: wrap;
    }

    .gq-candidate-login-card {
        border-radius: 10px;
        padding: 1.5rem 1.25rem;
    }
}

/* Login tabs + Mobile OTP (demo static API) */
.gq-login-tabs {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    padding: 0.25rem;
    background: #f1f5f9;
    border-radius: 10px;
}

.gq-login-tabs__btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.gq-login-tabs__btn.is-active {
    background: #fff;
    color: var(--gq-navy);
    box-shadow: 0 1px 3px rgba(12, 31, 61, 0.08);
}

.gq-otp-demo {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #6ee7b7;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: #065f46;
}

.gq-otp-demo__code {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.35em;
    margin: 0.35rem 0;
    color: #047857;
}

.gq-otp-hint {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: #94a3b8;
}

.gq-otp-verify-label {
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gq-navy);
    text-align: center;
}

.gq-otp-sent-to {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
}

.gq-otp-sent-to strong {
    color: var(--gq-navy);
    font-weight: 600;
}

.gq-otp-resend-success {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: #047857;
    text-align: center;
}

.gq-otp-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    margin-top: 1rem;
}

.gq-otp-actions__sep {
    color: #cbd5e1;
    font-size: 0.85rem;
}

.gq-otp-link-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #b8860b;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gq-otp-link-btn:hover {
    color: #8b6914;
}

.gq-otp-link-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.gq-otp-digits {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.gq-otp-digit {
    width: 2.75rem;
    height: 3rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    border: 1.5px solid var(--gq-border);
    border-radius: 8px;
    color: var(--gq-navy);
}

.gq-otp-digit:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.gq-otp-remember {
    display: block;
    margin-bottom: 1rem;
}

.gq-otp-login .gq-candidate-login-submit {
    width: 100%;
    margin-top: 0.5rem;
}
