/*
 * M1T Forge — Auth & account pages (v3)
 * Charcoal + cyan industrial identity — NOT SmartFarm emerald split-pane.
 */

/* ── Scene (AccountLayout) ─────────────────────────────────────────────── */

.m1t-auth-scene {
    --m1t-auth-accent: #7B4BAE;
    --m1t-auth-accent-glow: #B08FD6;
    --m1t-auth-void: #4E2A73;
    --m1t-auth-carbon: #3A2358;
    --m1t-auth-mist: #F5F7FA;
    --m1t-auth-snow: #FAFAFA;
    --m1t-auth-ink: #18181B;
    --m1t-auth-muted: #71717A;
    --m1t-auth-border: #E4E4E7;
    --m1t-auth-signal: #FFC400;
    --m1t-auth-danger: #DC2626;
    --m1t-auth-ok: #16A34A;

    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr minmax(380px, 440px);
    background: var(--m1t-auth-mist);
    color: var(--m1t-auth-ink);
    font-family: "Pretendard Variable", Pretendard, "Noto Sans Mongolian", system-ui, sans-serif;
    position: relative;
    overflow: hidden;
}

.m1t-auth-scene__mesh {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(8, 145, 178, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8, 145, 178, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 20%, transparent 70%);
    pointer-events: none;
}

.m1t-auth-scene__beam {
    position: absolute;
    width: 520px;
    height: 520px;
    left: -120px;
    top: -80px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.18) 0%, transparent 68%);
    pointer-events: none;
}

/* Right rail — dark showcase (opposite weight from SmartFarm green hero) */
.m1t-auth-rail {
    order: 2;
    background:
        linear-gradient(165deg, var(--m1t-auth-void) 0%, var(--m1t-auth-carbon) 45%, #0c4a6e 120%);
    color: #fafafa;
    padding: clamp(2rem, 5vw, 3.5rem);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.m1t-auth-rail::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            -12deg,
            transparent,
            transparent 40px,
            rgba(34, 211, 238, 0.03) 40px,
            rgba(34, 211, 238, 0.03) 41px
        );
    pointer-events: none;
}

.m1t-auth-rail__inner {
    position: relative;
    z-index: 1;
    max-width: 360px;
}

.m1t-auth-rail__badge {
    display: inline-block;
    font-family: "Pretendard Variable", Pretendard, system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(34, 211, 238, 0.35);
    color: var(--m1t-auth-accent-glow);
    border-radius: 4px;
    margin-bottom: 1.25rem;
}

.m1t-auth-rail__title {
    font-size: clamp(1.5rem, 2.2vw, 1.85rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.m1t-auth-rail__tagline {
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(250, 250, 250, 0.72);
    margin: 0 0 2rem;
}

.m1t-auth-rail__modules {
    list-style: none;
    margin: 0 0 2.5rem;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.m1t-auth-rail__modules li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(250, 250, 250, 0.88);
}

.m1t-auth-rail__icon {
    flex: 0 0 auto;
    width: 1.5rem;
    height: 1.5rem;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    color: var(--m1t-auth-accent-glow);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 4px;
    background: rgba(8, 145, 178, 0.12);
}

.m1t-auth-rail__stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.m1t-auth-rail__stat-val {
    display: block;
    font-family: "Pretendard Variable", Pretendard, system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--m1t-auth-accent-glow);
}

.m1t-auth-rail__stat-lbl {
    display: block;
    font-size: 0.72rem;
    color: rgba(250, 250, 250, 0.55);
    margin-top: 0.15rem;
}

/* Form stage (left) */
.m1t-auth-stage {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    position: relative;
    z-index: 1;
}

.m1t-auth-stage__logo {
    display: none;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--m1t-auth-ink);
}

.m1t-auth-stage__logo img {
    border-radius: 8px;
    box-shadow: 0 0 0 1px var(--m1t-auth-border);
}

.m1t-auth-stage__legal {
    margin-top: 2rem;
    font-size: 0.75rem;
    color: var(--m1t-auth-muted);
    text-align: center;
}

/* ── Login card ────────────────────────────────────────────────────────── */

.m1t-login-card {
    width: 100%;
    max-width: 400px;
    background: var(--m1t-auth-snow);
    border: 1px solid var(--m1t-auth-border);
    border-radius: 16px;
    padding: 2rem 2rem 1.75rem;
    box-shadow: 0 4px 24px rgba(46, 24, 64, 0.08);
    position: relative;
}

.m1t-login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(90deg, var(--m1t-auth-accent) 0%, var(--m1t-auth-accent-glow) 100%);
}

.m1t-login-card__eyebrow {
    font-family: "Pretendard Variable", Pretendard, system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--m1t-auth-accent);
    margin: 0 0 0.5rem;
}

.m1t-login-card__title {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 0.35rem;
    line-height: 1.15;
}

.m1t-login-card__lead {
    margin: 0;
    font-size: 0.9rem;
    color: var(--m1t-auth-muted);
    line-height: 1.5;
}

.m1t-login-card__head {
    margin-bottom: 1.5rem;
}

/* ── Form controls (login + shared field pattern) ──────────────────────── */

.m1t-field {
    margin-bottom: 1.1rem;
}

.m1t-field__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--m1t-auth-ink);
    margin-bottom: 0.35rem;
}

.m1t-field__input {
    display: block;
    width: 100%;
    padding: 0.7rem 0.85rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--m1t-auth-ink);
    background: var(--m1t-auth-mist);
    border: 1px solid var(--m1t-auth-border);
    border-radius: 6px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.m1t-field__input::placeholder {
    color: #A1A1AA;
}

.m1t-field__input:focus {
    outline: none;
    background: #fff;
    border-color: var(--m1t-auth-accent);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

.m1t-field__input.invalid {
    border-color: var(--m1t-auth-danger);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.m1t-field__error,
.m1t-login-form .validation-message,
.m1t-login-form .text-danger {
    display: block;
    font-size: 0.78rem;
    color: var(--m1t-auth-danger);
    margin-top: 0.3rem;
}

.m1t-login-form__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.m1t-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: var(--m1t-auth-ink);
    cursor: pointer;
    user-select: none;
}

.m1t-check__input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--m1t-auth-accent);
    cursor: pointer;
}

.m1t-login-form__link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--m1t-auth-accent);
    text-decoration: none;
}

.m1t-login-form__link:hover {
    text-decoration: underline;
    color: var(--m1t-auth-accent-deep, #0E7490);
}

.m1t-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.72rem 1.1rem;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.m1t-btn--block { width: 100%; }

.m1t-btn--primary {
    background: var(--m1t-auth-accent);
    color: #fff;
    border-color: var(--m1t-auth-accent);
    border-radius: 10px;
}

.m1t-btn--primary:hover {
    background: #0E7490;
    border-color: #0E7490;
}

.m1t-btn--primary:active {
    transform: translateY(1px);
}

.m1t-btn--ghost {
    background: transparent;
    color: var(--m1t-auth-ink);
    border-color: var(--m1t-auth-border);
}

.m1t-btn--ghost:hover {
    background: var(--m1t-auth-mist);
    border-color: var(--m1t-auth-accent);
    color: var(--m1t-auth-accent);
}

.m1t-login-form__divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0 1rem;
    color: var(--m1t-auth-muted);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.m1t-login-form__divider::before,
.m1t-login-form__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--m1t-auth-border);
}

.m1t-login-form__nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--m1t-auth-border);
    font-size: 0.82rem;
}

.m1t-login-form__nav a {
    color: var(--m1t-auth-accent);
    font-weight: 600;
    text-decoration: none;
}

.m1t-login-form__nav a:hover {
    text-decoration: underline;
}

.m1t-login-form__errors,
.M1T-auth-card .validation-errors {
    background: rgba(220, 38, 38, 0.06);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: var(--m1t-auth-danger);
    border-radius: 6px;
    padding: 0.65rem 0.85rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.m1t-login-form__errors ul,
.M1T-auth-card .validation-errors ul {
    margin: 0;
    padding-left: 1.1rem;
}

/* Status alerts */
.m1t-auth-status,
.M1T-auth-status {
    border-radius: 6px;
    padding: 0.7rem 0.85rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.45;
    border: 1px solid transparent;
}

.m1t-auth-status.is-success,
.M1T-auth-status.is-success {
    background: rgba(22, 163, 74, 0.08);
    border-color: rgba(22, 163, 74, 0.25);
    color: var(--m1t-auth-ok);
}

.m1t-auth-status.is-danger,
.M1T-auth-status.is-danger {
    background: rgba(220, 38, 38, 0.07);
    border-color: rgba(220, 38, 38, 0.22);
    color: var(--m1t-auth-danger);
}

.m1t-auth-status.is-info,
.M1T-auth-status.is-info {
    background: rgba(8, 145, 178, 0.08);
    border-color: rgba(8, 145, 178, 0.22);
    color: var(--m1t-auth-accent);
}

/* External login */
.M1T-auth-providers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.M1T-auth-providers button {
    flex: 1 1 auto;
    border-radius: 6px;
    background: var(--m1t-auth-mist);
    color: var(--m1t-auth-ink);
    border: 1px solid var(--m1t-auth-border);
    padding: 0.55rem 0.85rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.M1T-auth-providers button:hover {
    border-color: var(--m1t-auth-accent);
    background: #fff;
}

/* ── Legacy M1T-auth-card (register, forgot password, …) ─────────────── */

.M1T-auth-shell { min-height: 100vh; }

.M1T-auth-pane {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    min-height: 100vh;
    background: var(--m1t-auth-mist, #F4F4F5);
}

.M1T-auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--m1t-auth-snow, #FAFAFA);
    border: 1px solid var(--m1t-auth-border, #E4E4E7);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 16px 48px -24px rgba(9, 9, 11, 0.18);
    position: relative;
}

.M1T-auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(90deg, #0891B2 0%, #22D3EE 100%);
}

.M1T-auth-card.is-wide { max-width: 920px; }

.M1T-auth-card-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--m1t-auth-border, #E4E4E7);
}

.M1T-auth-eyebrow {
    font-family: "Pretendard Variable", Pretendard, system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0891B2;
    margin-bottom: 0.4rem;
}

.M1T-auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.M1T-auth-subtitle {
    color: var(--m1t-auth-muted, #71717A);
    font-size: 0.9rem;
    margin: 0;
}

.M1T-auth-card .form-floating { margin-bottom: 0.85rem; }

.M1T-auth-card .form-floating > .form-control,
.M1T-auth-card input.form-control,
.M1T-auth-card select.form-select {
    border-radius: 6px;
    border: 1px solid var(--m1t-auth-border, #E4E4E7);
    background: #F4F4F5;
    font-size: 0.92rem;
}

.M1T-auth-card .form-floating > .form-control:focus,
.M1T-auth-card input.form-control:focus {
    border-color: #0891B2;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
    background: #fff;
}

.M1T-auth-card .btn-primary,
.M1T-auth-card button[type="submit"]:not(.btn-link):not(.btn-outline-primary):not(.btn-secondary):not(.btn-danger) {
    background: #0891B2;
    border: none;
    border-radius: 6px;
    color: #fff !important;
    font-weight: 600;
    box-shadow: none;
}

.M1T-auth-card .btn-primary:hover,
.M1T-auth-card button[type="submit"]:not(.btn-link):not(.btn-outline-primary):not(.btn-secondary):not(.btn-danger):hover {
    background: #0E7490;
}

.M1T-auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0 1rem;
    color: #71717A;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
}

.M1T-auth-divider::before,
.M1T-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #E4E4E7;
}

.M1T-auth-meta {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.82rem;
}

.M1T-auth-meta a {
    color: #0891B2;
    font-weight: 600;
    text-decoration: none;
}

.M1T-auth-meta a:hover { text-decoration: underline; }

/* Account management (in-app settings) */
.M1T-manage-page {
    width: 100%;
    max-width: none;
    padding: 0 !important;
}

.M1T-manage-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 56px;
    margin-bottom: 1.15rem;
}

.M1T-manage-avatar {
    display: grid;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 50%;
    background: #4E2A73;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 800;
}

.M1T-manage-hero__copy {
    min-width: 0;
}

.M1T-manage-hero__copy h1 {
    margin: 0;
    color: #17233D;
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.M1T-manage-hero__copy p {
    display: flex;
    align-items: center;
    gap: 0.32rem;
    margin: 0.22rem 0 0;
    color: #64748B;
    font-size: 0.76rem;
}

.M1T-manage-hero__separator {
    color: #94A3B8;
}

.M1T-manage-2fa,
.M1T-manage-verify {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 999px;
    background: #ECFDF3;
    color: #15803D;
    font-size: 0.7rem;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}

.M1T-manage-2fa {
    margin-left: auto;
    padding: 0.48rem 0.68rem;
}

.M1T-manage-2fa .mud-icon-root,
.M1T-manage-verify .mud-icon-root {
    color: currentColor;
    font-size: 0.9rem;
}

.M1T-manage-2fa--off,
.M1T-manage-verify--off {
    background: #FFF8DB;
    color: #9A6B00;
}

.M1T-manage-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.M1T-manage-side {
    position: sticky;
    top: 72px;
    padding: 0.75rem 0.62rem;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #FFFFFF;
}

.M1T-manage-side h6 {
    margin: 0;
    padding: 0.38rem 0.62rem 0.34rem;
    color: #94A3B8;
    font-family: "Pretendard Variable", Pretendard, system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.3;
    text-transform: uppercase;
}

.M1T-manage-nav__section {
    margin-top: 0.72rem !important;
}

.M1T-manage-nav {
    display: grid;
    gap: 0.12rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.M1T-manage-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.62rem;
    min-height: 36px;
    padding: 0 0.62rem;
    border-radius: 8px;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 140ms ease, background-color 140ms ease;
}

.M1T-manage-nav .nav-link .mud-icon-root {
    flex: 0 0 auto;
    color: #94A3B8;
    font-size: 1rem;
}

.M1T-manage-nav .nav-link:hover {
    background: #F8FAFC;
    color: #4E2A73;
}

.M1T-manage-nav .nav-link.active {
    background: #F3EDFB;
    color: #4E2A73;
    font-weight: 750;
}

.M1T-manage-nav .nav-link.active .mud-icon-root {
    color: #7B4BAE;
}

.M1T-manage-nav__badge {
    display: grid;
    min-width: 20px;
    height: 20px;
    margin-left: auto;
    padding: 0 0.3rem;
    place-items: center;
    border-radius: 999px;
    background: #F3EDFB;
    color: #6D3E9C;
    font-family: "Pretendard Variable", Pretendard, system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
    font-size: 0.62rem;
    font-weight: 700;
}

.M1T-manage-main {
    display: grid;
    gap: 0.85rem;
    min-width: 0;
}

.M1T-manage-content,
.M1T-manage-card {
    overflow: hidden;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: none;
}

.M1T-manage-content {
    padding: 1.25rem;
}

.M1T-manage-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 66px;
    padding: 0.88rem 1.25rem;
    border-bottom: 1px solid #E2E8F0;
}

.M1T-manage-card__head h2,
.M1T-manage-content .M1T-manage-title {
    margin: 0;
    color: #17233D;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.M1T-manage-card__head p,
.M1T-manage-content .M1T-manage-subtitle {
    margin: 0.18rem 0 0;
    color: #64748B;
    font-size: 0.72rem;
}

.M1T-manage-card__body {
    padding: 1.25rem;
}

.M1T-manage-form {
    display: grid;
    gap: 0.92rem;
    width: min(480px, 100%);
}

.M1T-manage-field {
    display: grid;
    gap: 0.38rem;
}

.M1T-manage-field label {
    color: #25324A;
    font-size: 0.75rem;
    font-weight: 750;
}

.M1T-manage-input-shell {
    position: relative;
}

.M1T-manage-input-shell .M1T-manage-input {
    padding-right: 2.5rem;
}

.M1T-manage-input-shell .mud-icon-root {
    position: absolute;
    top: 50%;
    right: 0.86rem;
    color: #94A3B8;
    font-size: 1rem;
    pointer-events: none;
    transform: translateY(-50%);
}

.M1T-manage-input {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 0.86rem;
    border: 1px solid #D8E1ED;
    border-radius: 10px;
    outline: none;
    background: #F8FAFC;
    color: #1E293B;
    font: inherit;
    font-size: 0.83rem;
    transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.M1T-manage-input:focus {
    border-color: #7B4BAE;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(109, 62, 156, 0.12);
}

.M1T-manage-input:disabled {
    border-color: #DCE4EF;
    background: #F1F5F9;
    color: #64748B;
    cursor: not-allowed;
    opacity: 1;
}

.M1T-manage-field__hint {
    color: #94A3B8;
    font-size: 0.66rem;
}

.M1T-manage-form .btn-primary,
.M1T-manage-content .btn-primary,
.M1T-manage-content button[type="submit"]:not(.btn-link):not(.btn-outline-primary):not(.btn-secondary):not(.btn-danger) {
    width: fit-content;
    min-height: 40px;
    padding: 0 1rem;
    border: 0;
    border-radius: 10px;
    background: #4E2A73;
    color: #FFFFFF !important;
    font-size: 0.78rem;
    font-weight: 750;
    box-shadow: none;
}

.M1T-manage-form .btn-primary:hover,
.M1T-manage-content .btn-primary:hover,
.M1T-manage-content button[type="submit"]:not(.btn-link):not(.btn-outline-primary):not(.btn-secondary):not(.btn-danger):hover {
    background: #243A64;
}

.M1T-manage-verify {
    padding: 0.38rem 0.58rem;
}

.M1T-manage-email-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 51px;
    padding: 0.8rem 1.25rem;
}

.M1T-manage-email-row strong {
    color: #17233D;
    font-size: 0.82rem;
    font-weight: 700;
}

.M1T-manage-email-row a {
    color: #3B63F4;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
}

.M1T-manage-email-row a:hover {
    text-decoration: underline;
}

.M1T-password-head {
    display: flex;
    align-items: center;
    gap: 0.82rem;
    min-height: 74px;
    margin: -1.25rem -1.25rem 1.25rem;
    padding: 0.95rem 1.25rem;
    border-bottom: 1px solid #E2E8F0;
    background: linear-gradient(90deg, #FFFFFF 0%, #F8FAFC 100%);
}

.M1T-password-head__icon {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid #DCE6FF;
    border-radius: 11px;
    background: #F3EDFB;
    color: #6D3E9C;
}

.M1T-password-head__icon .mud-icon-root {
    color: currentColor;
    font-size: 1.25rem;
}

.M1T-password-status,
.M1T-password-notice,
.M1T-password-grid {
    width: min(880px, 100%);
}

.M1T-password-notice .mud-icon-root {
    flex: 0 0 auto;
    margin-top: 0.08rem;
    color: currentColor;
    font-size: 1.05rem;
}

.M1T-password-notice strong {
    display: block;
    margin-bottom: 0.1rem;
}

.M1T-password-grid {
    display: grid;
    grid-template-columns: minmax(0, 500px) minmax(230px, 1fr);
    gap: 1.4rem;
    align-items: start;
}

.M1T-password-form {
    width: 100%;
    gap: 1rem;
}

.M1T-password-form .validation-errors {
    padding: 0.72rem 0.86rem;
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 9px;
    background: rgba(220, 38, 38, 0.06);
    color: #A31710;
    font-size: 0.76rem;
}

.M1T-password-form .validation-errors:empty {
    display: none;
}

.M1T-password-form .validation-errors ul {
    margin: 0;
    padding-left: 1.05rem;
}

.M1T-password-form .text-danger {
    color: #A31710;
    font-size: 0.7rem;
}

.M1T-password-form .M1T-manage-input.invalid {
    border-color: #DC2626;
    background: #FFF8F8;
}

.M1T-password-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.2rem;
}

.M1T-password-submit .mud-icon-root {
    color: currentColor;
    font-size: 1rem;
}

.M1T-password-policy {
    padding: 1.05rem;
    border: 1px solid #DCE6FF;
    border-radius: 12px;
    background: #F7F9FF;
}

.M1T-password-policy__icon {
    display: grid;
    width: 34px;
    height: 34px;
    margin-bottom: 0.75rem;
    place-items: center;
    border-radius: 10px;
    background: #E8EFFF;
    color: #6D3E9C;
}

.M1T-password-policy__icon .mud-icon-root {
    color: currentColor;
    font-size: 1.1rem;
}

.M1T-password-policy h3 {
    margin: 0;
    color: #17233D;
    font-size: 0.82rem;
    font-weight: 800;
}

.M1T-password-policy > p {
    margin: 0.28rem 0 0;
    color: #64748B;
    font-size: 0.69rem;
    line-height: 1.5;
}

.M1T-password-policy ul {
    display: grid;
    gap: 0.52rem;
    margin: 0.88rem 0 0;
    padding: 0.82rem 0 0;
    border-top: 1px solid #E2E8F0;
    list-style: none;
}

.M1T-password-policy li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 600;
}

.M1T-password-policy li .mud-icon-root {
    flex: 0 0 auto;
    color: #22A06B;
    font-size: 0.9rem;
}

@media (max-width: 1200px) {
    .M1T-password-grid {
        grid-template-columns: minmax(0, 520px);
    }

    .M1T-password-policy {
        max-width: 520px;
    }
}

@media (max-width: 900px) {
    .M1T-manage-shell {
        grid-template-columns: 1fr;
    }

    .M1T-manage-side {
        position: static;
    }

    .M1T-manage-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .M1T-manage-hero {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .M1T-manage-2fa {
        margin-left: 68px;
    }

    .M1T-manage-nav {
        grid-template-columns: 1fr;
    }

    .M1T-manage-card__head,
    .M1T-manage-email-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .M1T-manage-card__body,
    .M1T-manage-content {
        padding: 1rem;
    }

    .M1T-password-head {
        margin: -1rem -1rem 1rem;
        padding: 0.9rem 1rem;
    }

    .M1T-password-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Responsive */
@media (max-width: 960px) {
    .m1t-auth-scene {
        grid-template-columns: 1fr;
    }

    .m1t-auth-rail {
        display: none;
    }

    .m1t-auth-stage__logo {
        display: flex;
    }
}

@media (max-width: 480px) {
    .m1t-login-card,
    .M1T-auth-card {
        padding: 1.35rem 1.15rem;
        border-radius: 8px;
    }
}

/* ── v5 control-room login ───────────────────────────────────────────── */

.m1t-auth-scene {
    --m1t-auth-accent: #7B4BAE;
    --m1t-auth-accent-glow: #B08FD6;
    --m1t-auth-void: #3A2358;
    --m1t-auth-carbon: #4E2A73;
    --m1t-auth-mist: #F8FAFC;
    --m1t-auth-snow: #FFFFFF;
    --m1t-auth-ink: #1E293B;
    --m1t-auth-muted: #64748B;
    --m1t-auth-border: #E2E8F0;

    display: block;
    overflow-y: auto;
    background: linear-gradient(180deg, #3A2358 0%, #4E2A73 60%, #5C3585 100%);
    color: var(--m1t-auth-ink);
    font-family: "Pretendard Variable", Pretendard, "Noto Sans Mongolian", system-ui, sans-serif;
}

.m1t-auth-scene__mesh {
    background-image:
        linear-gradient(rgba(176, 143, 214, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(176, 143, 214, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
}

.m1t-auth-stage {
    min-height: 100vh;
    padding: 34px 20px 24px;
    justify-content: flex-start;
}

.m1t-auth-stage__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 22px;
    color: #fff;
}

.m1t-auth-stage__brand img {
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(176, 143, 214, 0.22), 0 0 18px rgba(109, 62, 156, 0.2);
}

.m1t-auth-stage__brand strong,
.m1t-auth-stage__brand span {
    display: block;
}

.m1t-auth-stage__brand strong {
    font-size: 1.05rem;
    line-height: 1.2;
}

.m1t-auth-stage__brand span {
    margin-top: 4px;
    color: var(--m1t-auth-accent-glow);
    font-family: "Pretendard Variable", Pretendard, system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
}

.m1t-login-card {
    max-width: 400px;
    padding: 30px;
    border: none;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.45);
}

.m1t-login-card::before,
.m1t-login-card__eyebrow {
    display: none;
}

.m1t-login-card__title {
    font-size: 1.5rem;
    font-weight: 800;
}

.m1t-login-card__lead {
    color: var(--m1t-auth-muted);
    font-size: 0.88rem;
}

.m1t-field__label {
    font-size: 0.8rem;
}

.m1t-field__input {
    min-height: 46px;
    padding: 0 13px;
    border-color: var(--m1t-auth-border);
    border-radius: 10px;
    background: #F8FAFC;
}

.m1t-field__input:focus {
    border-color: var(--m1t-auth-accent);
    box-shadow: 0 0 0 3px rgba(109, 62, 156, 0.18);
}

.m1t-check__input {
    accent-color: var(--m1t-auth-accent);
}

.m1t-login-form__link,
.m1t-login-form__nav a {
    color: #6D3E9C;
}

.m1t-btn {
    border-radius: 10px;
}

.m1t-btn--primary {
    min-height: 48px;
    border-color: #4E2A73;
    background: #4E2A73;
    font-weight: 700;
}

.m1t-btn--primary:hover {
    border-color: #3A2358;
    background: #3A2358;
}

.m1t-btn--ghost {
    min-height: 46px;
    background: #fff;
}

.m1t-auth-stage__modules {
    display: flex;
    justify-content: center;
    gap: 26px;
    width: min(760px, 100%);
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.m1t-auth-stage__modules li {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.76rem;
    white-space: nowrap;
}

.m1t-auth-stage__modules li > span {
    color: var(--m1t-auth-accent-glow);
    font-size: 1rem;
}

.m1t-auth-stage__legal {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 760px) {
    .m1t-auth-stage__modules {
        display: none;
    }
}

@media (max-width: 480px) {
    .m1t-auth-stage { padding: 20px 14px; }
    .m1t-login-card { padding: 24px 20px; }
}
