/* ============================================================
   NTM Auth — Login & Register

   Split editorial layout used by both screens:
     - Left  : dark editorial aside (eyebrow, serif headline,
               description, optional benefits list, teal glow).
     - Right : light form column on the page background.

   All colors / fonts / sizes route through theme.css tokens.
   ============================================================ */

.ntm-auth {
    background-color: var(--ntm-bg-page);
    color: var(--ntm-ink);
    font-family: var(--ntm-font-sans);
    padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 32px);
}

.ntm-auth__container {
    max-width: var(--ntm-container-max);
    margin: 0 auto;
}

.ntm-auth__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    background-color: var(--ntm-bg-dark);
    border: 1px solid rgba(20, 50, 58, 0.1);
    overflow: hidden;
    min-height: clamp(560px, 70vh, 760px);
}

@media (min-width: 992px) {
    .ntm-auth__grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    }
}

/* ---------- Aside (dark editorial column) ---------- */
.ntm-auth__aside {
    position: relative;
    background-color: var(--ntm-bg-dark);
    color: #ffffff;
    padding: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 56px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(28px, 4vw, 48px);
    overflow: hidden;
    isolation: isolate;
}

.ntm-auth__aside-glow {
    position: absolute;
    top: 38%;
    left: 12%;
    width: clamp(220px, 28vw, 480px);
    height: clamp(220px, 28vw, 480px);
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(
        circle at center,
        rgba(42, 139, 148, 0.4) 0%,
        rgba(42, 139, 148, 0.18) 30%,
        rgba(42, 139, 148, 0.05) 60%,
        rgba(42, 139, 148, 0) 100%
    );
    filter: blur(14px);
}

.ntm-auth__aside-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 2.4vw, 32px);
    max-width: 520px;
}

.ntm-auth__eyebrow {
    margin: 0;
    font-family: var(--ntm-font-sans);
    font-weight: 600;
    font-size: clamp(0.7rem, 0.8vw, 0.8125rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ntm-accent-teal);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.ntm-auth__eyebrow-rule {
    display: inline-block;
    width: clamp(28px, 3vw, 40px);
    height: 1px;
    background-color: var(--ntm-accent-teal);
    opacity: 0.85;
}

.ntm-auth__headline {
    margin: 0;
    font-family: var(--ntm-font-serif);
    font-weight: 400;
    font-size: clamp(2rem, 4.2vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: 0.005em;
    color: #ffffff;
}

.ntm-auth__headline-roman {
    font-style: normal;
}

.ntm-auth__headline-italic {
    font-style: italic;
    color: var(--ntm-accent-teal);
    margin-left: 0.18em;
}

.ntm-auth__description {
    margin: 0;
    max-width: 420px;
    font-family: var(--ntm-font-sans);
    font-size: clamp(0.95rem, 1vw, 1.0625rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
}

/* ---------- Benefits list ---------- */
.ntm-auth__benefits {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 1.4vw, 18px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: clamp(20px, 2.4vw, 28px);
}

.ntm-auth__benefit {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ntm-auth__benefit-mark {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 1px solid var(--ntm-accent-teal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ntm-accent-teal);
}

.ntm-auth__benefit-mark svg {
    width: 14px;
    height: 14px;
}

.ntm-auth__benefit-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ntm-auth__benefit-title {
    margin: 0;
    font-family: var(--ntm-font-serif);
    font-weight: 500;
    font-size: clamp(1rem, 1.1vw, 1.125rem);
    line-height: 1.25;
    color: #ffffff;
}

.ntm-auth__benefit-text {
    margin: 0;
    font-family: var(--ntm-font-sans);
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.7);
}

/* ---------- Form column ---------- */
.ntm-auth__panel {
    background-color: var(--ntm-bg-page);
    color: var(--ntm-ink);
    padding: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 56px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(24px, 2.8vw, 36px);
}

.ntm-auth__panel-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ntm-auth__title {
    margin: 0;
    font-family: var(--ntm-font-serif);
    font-weight: 500;
    font-size: clamp(1.75rem, 2.6vw, 2.25rem);
    line-height: 1.15;
    color: var(--ntm-ink);
    letter-spacing: -0.005em;
}

.ntm-auth__subtitle {
    margin: 0;
    font-family: var(--ntm-font-sans);
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--ntm-muted);
    max-width: 480px;
}

.ntm-auth__notice {
    padding: 14px 16px;
    border: 1px solid var(--ntm-rule);
    border-left: 3px solid var(--ntm-accent-teal);
    background-color: rgba(42, 139, 148, 0.06);
    font-family: var(--ntm-font-sans);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--ntm-ink);
}

.ntm-auth__notice-title {
    display: block;
    font-weight: 600;
    color: var(--ntm-ink);
    margin-bottom: 3px;
}

.ntm-auth__alert {
    padding: 12px 16px;
    border: 1px solid;
    font-family: var(--ntm-font-sans);
    font-size: 0.875rem;
    line-height: 1.55;
}

.ntm-auth__alert--success {
    background-color: rgba(42, 139, 148, 0.08);
    border-color: rgba(42, 139, 148, 0.35);
    color: var(--ntm-ink);
}

.ntm-auth__alert--danger {
    background-color: rgba(168, 39, 39, 0.06);
    border-color: rgba(168, 39, 39, 0.4);
    color: #7a1f1f;
}

.ntm-auth__alert p {
    margin: 0;
}

.ntm-auth__alert p + p {
    margin-top: 4px;
}

/* ---------- Form fields ---------- */
.ntm-auth__form {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 1.4vw, 18px);
}

.ntm-auth__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(12px, 1.2vw, 16px);
}

@media (min-width: 576px) {
    .ntm-auth__row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

.ntm-auth__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ntm-auth__label {
    font-family: var(--ntm-font-sans);
    font-weight: 600;
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ntm-muted);
}

.ntm-auth__input,
.ntm-auth__select {
    width: 100%;
    height: 52px;
    background-color: #ffffff;
    border: 1px solid var(--ntm-rule);
    color: var(--ntm-ink);
    font-family: var(--ntm-font-sans);
    font-size: 0.9375rem;
    line-height: 1.2;
    padding: 0 16px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.ntm-auth__input::placeholder {
    color: rgba(20, 50, 58, 0.45);
}

.ntm-auth__input:focus,
.ntm-auth__select:focus {
    outline: none;
    border-color: var(--ntm-accent-teal);
    box-shadow: 0 0 0 3px rgba(42, 139, 148, 0.18);
    background-color: #ffffff;
}

.ntm-auth__select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ntm-auth__select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 42px;
    background-color: #ffffff;
    cursor: pointer;
}

.ntm-auth__select-chev {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--ntm-muted);
    pointer-events: none;
}

.ntm-auth__select-chev svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ---------- Submit / actions ---------- */
.ntm-auth__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 56px;
    margin-top: 6px;
    background-color: var(--ntm-bg-dark);
    color: #ffffff;
    border: 1px solid var(--ntm-bg-dark);
    font-family: var(--ntm-font-sans);
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.ntm-auth__submit:hover,
.ntm-auth__submit:focus-visible {
    background-color: var(--ntm-accent-teal);
    border-color: var(--ntm-accent-teal);
    color: #ffffff;
    outline: none;
}

.ntm-auth__submit svg {
    width: 14px;
    height: 14px;
}

/* ---------- Secondary actions row ---------- */
.ntm-auth__secondary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    padding-top: 6px;
}

.ntm-auth__secondary-link {
    font-family: var(--ntm-font-sans);
    font-weight: 500;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    color: var(--ntm-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--ntm-rule);
    padding-bottom: 2px;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.ntm-auth__secondary-link:hover,
.ntm-auth__secondary-link:focus-visible {
    color: var(--ntm-accent-teal);
    border-color: var(--ntm-accent-teal);
    text-decoration: none;
    outline: none;
}

.ntm-auth__footer {
    margin-top: 6px;
    padding-top: clamp(18px, 2vw, 22px);
    border-top: 1px solid var(--ntm-rule);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-family: var(--ntm-font-sans);
    font-size: 0.875rem;
    color: var(--ntm-muted);
}

.ntm-auth__footer-link {
    color: var(--ntm-ink);
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--ntm-accent-teal);
    padding-bottom: 2px;
    transition: color 0.18s ease;
}

.ntm-auth__footer-link:hover,
.ntm-auth__footer-link:focus-visible {
    color: var(--ntm-accent-teal);
    text-decoration: none;
}

/* ---------- Recaptcha alignment ---------- */
.ntm-auth__recaptcha {
    display: flex;
    justify-content: flex-start;
    margin-top: 2px;
}

/* ---------- Disclaimer microcopy ---------- */
.ntm-auth__disclaimer {
    margin: 0;
    font-family: var(--ntm-font-sans);
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--ntm-muted);
}

/* ---------- Responsive aside-collapse on small screens ---------- */
@media (max-width: 991.98px) {
    .ntm-auth__aside {
        padding: clamp(32px, 6vw, 48px) clamp(24px, 5vw, 40px);
    }
    .ntm-auth__panel {
        padding: clamp(32px, 6vw, 48px) clamp(24px, 5vw, 40px);
    }
}
