/* trialhelix-aux.css — pages-aux supplemental styles */
/* Covers: team.html, contact.html, 404.html, auth/* */

/* ============================================================
   TEAM PAGE — th-team (A-grid, 5 members, 3-col)
   ============================================================ */
.th-team {
    padding: var(--section-pad) 0;
    background: var(--th-bg-dark);
}

.th-team__inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 24px;
}

.th-team__header {
    text-align: center;
    margin-bottom: 56px;
}

.th-team__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* 5-member grid: first row 3, second row 2 centered */
.th-team__grid .th-team__card:nth-child(4) {
    grid-column: 1;
}

.th-team__grid .th-team__card:nth-child(5) {
    grid-column: 2;
}

.th-team__card {
    background: var(--th-bg-card);
    border: 1px solid var(--th-border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.th-team__card:hover {
    border-color: rgba(124, 58, 237, 0.4);
    transform: translateY(-3px);
}

.th-team__photo-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--th-bg-surface);
}

.th-team__photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.th-team__body {
    padding: 20px 20px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.th-team__name {
    font-size: 17px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 4px;
}

.th-team__title {
    font-size: 13px;
    font-weight: 500;
    color: var(--th-secondary);
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .th-team__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .th-team__grid .th-team__card:nth-child(4),
    .th-team__grid .th-team__card:nth-child(5) {
        grid-column: auto;
    }
}

@media (max-width: 576px) {
    .th-team__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   CONTACT PAGE — th-contact (A-split: form left, info right)
   ============================================================ */
.th-contact {
    padding: var(--section-pad) 0;
    background: var(--th-bg-dark);
}

.th-contact__inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 24px;
}

.th-contact__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    align-items: start;
}

/* Form column */
.th-contact__form-title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.th-contact__form-lede {
    font-size: 15px;
    color: var(--th-text-body);
    margin-bottom: 32px;
    line-height: 1.6;
}

.th-contact__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.th-contact__row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.th-contact__form input,
.th-contact__form select,
.th-contact__form textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: var(--font-sans);
    color: #f1f5f9;
    background: var(--th-bg-surface);
    border: 1px solid var(--th-border);
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}

.th-contact__form input::placeholder,
.th-contact__form textarea::placeholder {
    color: var(--th-text-muted);
}

.th-contact__form select option {
    background: var(--th-bg-surface);
    color: #f1f5f9;
}

.th-contact__form input:focus,
.th-contact__form select:focus,
.th-contact__form textarea:focus {
    outline: none;
    border-color: var(--th-accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.th-contact__form textarea {
    resize: vertical;
    min-height: 120px;
}

.th-contact__submit {
    display: inline-block;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-sans);
    border: none;
    border-radius: 8px;
    background: var(--th-accent);
    color: #ffffff;
    cursor: pointer;
    transition: filter 0.2s;
    align-self: flex-start;
}

.th-contact__submit:hover {
    filter: brightness(1.12);
}

.th-contact__success {
    display: none;
    padding: 14px 16px;
    background: rgba(13, 148, 136, 0.12);
    border: 1px solid rgba(13, 148, 136, 0.3);
    border-radius: 8px;
    font-size: 14px;
    color: #34d399;
    line-height: 1.6;
}

.th-contact__success.is-visible {
    display: block;
}

/* Info column */
.th-contact__info-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
}

.th-contact__info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.th-contact__info-item i {
    width: 36px;
    height: 36px;
    background: rgba(13, 148, 136, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--th-secondary);
    flex-shrink: 0;
}

.th-contact__info-text {
    font-size: 14px;
    color: var(--th-text-body);
    line-height: 1.6;
}

.th-contact__info-text a {
    color: var(--th-text-body);
    text-decoration: none;
}

.th-contact__info-text a:hover {
    color: var(--th-accent);
    opacity: 1;
}

.th-contact__info-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--th-text-muted);
    margin-bottom: 4px;
}

.th-contact__map-placeholder {
    margin-top: 32px;
    padding: 28px 24px;
    background: var(--th-bg-surface);
    border: 1px solid var(--th-border);
    border-radius: 10px;
}

.th-contact__map-placeholder p {
    font-size: 14px;
    color: var(--th-text-body);
    margin: 0 0 6px;
    line-height: 1.6;
}

.th-contact__map-placeholder strong {
    color: #f1f5f9;
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
}

@media (max-width: 768px) {
    .th-contact__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .th-contact__row-2 {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   404 PAGE
   ============================================================ */
.th-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 80px 24px;
    background: var(--th-bg-dark);
    text-align: center;
}

.th-404__inner {
    max-width: 560px;
    margin: 0 auto;
}

.th-404__code {
    font-size: 120px;
    font-weight: 900;
    color: var(--th-accent);
    opacity: 0.18;
    line-height: 1;
    font-family: var(--font-mono);
    margin-bottom: 0;
    display: block;
}

.th-404__title {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
}

.th-404__body {
    font-size: 17px;
    color: var(--th-text-body);
    line-height: 1.7;
    margin-bottom: 36px;
}

.th-404__cta {
    display: inline-block;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    background: var(--th-accent);
    color: #ffffff;
    text-decoration: none;
    transition: filter 0.2s;
}

.th-404__cta:hover {
    filter: brightness(1.12);
    color: #ffffff;
    opacity: 1;
}

/* ============================================================
   AUTH PAGES — Pattern A subfolder (auth/)
   layout: B-split-features
   bg_mode: B-css-gradient
   ============================================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    background: #0d0d1a;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(13, 148, 136, 0.10) 0%, transparent 50%),
        #0d0d1a;
}

/* B-split-features: left = form, right = feature list */
.auth-split {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.auth-form-side {
    flex: 0 0 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 48px;
}

.auth-info-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 56px;
    background: rgba(124, 58, 237, 0.06);
    border-left: 1px solid rgba(124, 58, 237, 0.15);
}

.auth-card {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 44px 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Logo above form (P1) */
.auth-logo {
    display: block;
    text-align: center;
    margin-bottom: 28px;
    text-decoration: none;
}

.auth-logo-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #f1f5f9;
    font-weight: 800;
    font-size: 20px;
    font-family: var(--font-sans);
    letter-spacing: -0.02em;
}

.auth-logo-mark img {
    height: 28px;
    width: auto;
}

.auth-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 6px;
    text-align: center;
}

.auth-card .auth-sub {
    font-size: 14px;
    color: #64748b;
    text-align: center;
    margin-bottom: 28px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.auth-form label {
    font-size: 13px;
    font-weight: 500;
    color: #cbd5e1;
}

.auth-form input,
.auth-form select {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    font-family: var(--font-sans);
    color: #f1f5f9;
    background: #12121e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}

.auth-form input::placeholder {
    color: #475569;
}

.auth-form select option {
    background: #1a1a2e;
    color: #f1f5f9;
}

.auth-form input:focus,
.auth-form select:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.auth-field-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.auth-check-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
}

.auth-check-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    padding: 0;
    accent-color: #7c3aed;
}

.auth-btn {
    width: 100%;
    padding: 13px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-sans);
    border: none;
    border-radius: 8px;
    background: #7c3aed;
    color: #ffffff;
    cursor: pointer;
    margin-top: 4px;
    transition: filter 0.2s;
}

.auth-btn:hover {
    filter: brightness(1.12);
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #64748b;
}

.auth-links a {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
    filter: brightness(1.12);
}

.auth-terms {
    font-size: 12px;
    color: #475569;
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
}

.auth-terms a {
    color: #7c3aed;
    text-decoration: none;
}

.auth-terms a:hover {
    text-decoration: underline;
}

.auth-back-bar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    color: #7c3aed;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
}

.auth-back-bar:hover {
    filter: brightness(1.15);
    text-decoration: underline;
}

.auth-message {
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.auth-message.success {
    background: rgba(13, 148, 136, 0.15);
    color: #34d399;
    border: 1px solid rgba(13, 148, 136, 0.25);
}

.auth-message.error {
    background: rgba(185, 28, 28, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(252, 165, 165, 0.2);
}

/* Info side (right panel) */
.auth-info-side .auth-info-heading {
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 12px;
}

.auth-info-side .auth-info-sub {
    font-size: 15px;
    color: #94a3b8;
    margin-bottom: 36px;
    line-height: 1.65;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-features li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 15px;
    color: #cbd5e1;
    line-height: 1.55;
}

.auth-features li i {
    width: 32px;
    height: 32px;
    background: rgba(124, 58, 237, 0.14);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #7c3aed;
    flex-shrink: 0;
    margin-top: 1px;
}

.auth-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(13, 148, 136, 0.12);
    border: 1px solid rgba(13, 148, 136, 0.25);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: #34d399;
}

/* Dashboard specific */
.auth-dashboard {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.auth-sidebar {
    flex: 0 0 240px;
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    padding: 28px 20px;
    gap: 8px;
}

.auth-sidebar-logo {
    display: block;
    margin-bottom: 28px;
    text-decoration: none;
    color: #f1f5f9;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.auth-sidebar-logo img {
    height: 26px;
    width: auto;
}

.auth-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s;
}

.auth-sidebar-link:hover,
.auth-sidebar-link.active {
    background: rgba(124, 58, 237, 0.14);
    color: #f1f5f9;
    opacity: 1;
}

.auth-sidebar-link i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.auth-sidebar-logout {
    margin-top: auto;
}

.auth-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-dashboard-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}

.auth-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.auth-stat-card {
    background: var(--th-bg-card);
    border: 1px solid var(--th-border);
    border-radius: 12px;
    padding: 22px 20px;
}

.auth-stat-card .stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--th-text-muted);
    margin-bottom: 8px;
}

.auth-stat-card .stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1.1;
}

.auth-stat-card .stat-sub {
    font-size: 12px;
    color: var(--th-text-muted);
    margin-top: 4px;
}

.auth-dashboard-note {
    font-size: 13px;
    color: var(--th-text-muted);
    background: var(--th-bg-surface);
    border: 1px solid var(--th-border);
    border-radius: 8px;
    padding: 14px 16px;
    line-height: 1.55;
}

/* Verify / static message page */
.auth-verify-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.auth-verify-card {
    text-align: center;
    max-width: 440px;
    padding: 0 24px;
}

.auth-verify-icon {
    width: 64px;
    height: 64px;
    background: rgba(13, 148, 136, 0.14);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #34d399;
    margin: 0 auto 24px;
}

.auth-verify-card h2 {
    font-size: 26px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 14px;
}

.auth-verify-card p {
    font-size: 15px;
    color: #94a3b8;
    line-height: 1.65;
    margin-bottom: 28px;
}

.auth-verify-card .auth-btn {
    width: auto;
    display: inline-block;
    padding: 13px 32px;
    text-decoration: none;
}

/* Mini footer for auth pages */
.auth-mini-footer {
    padding: 16px 24px;
    text-align: center;
    font-size: 12px;
    color: #475569;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-mini-footer a {
    color: #64748b;
    text-decoration: none;
}

.auth-mini-footer a:hover {
    color: #94a3b8;
    opacity: 1;
}

/* Reset password page */
.auth-reset-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(13, 148, 136, 0.10) 0%, transparent 50%),
        #0d0d1a;
}

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

/* Responsive auth */
@media (max-width: 900px) {
    .auth-split {
        flex-direction: column;
    }
    .auth-form-side {
        flex: 0 0 auto;
        padding: 32px 24px;
    }
    .auth-info-side {
        display: none;
    }
    .auth-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .auth-sidebar {
        display: none;
    }
    .auth-dashboard {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 32px 22px;
    }
    .auth-field-pair {
        grid-template-columns: 1fr;
    }
    .auth-stats-grid {
        grid-template-columns: 1fr;
    }
}
