.tm-auth-body {
    min-height: 100vh;
    background: #ffffff;
}

.tm-auth-wrapper-modern {
    --tm-auth-blue: #3b6ff5;
    --tm-auth-blue-dark: #2457da;
    --tm-auth-navy: #0d1629;
    --tm-auth-ink: #0f1f38;
    --tm-auth-muted: #60708a;
    --tm-auth-border: #dbe3ee;
    --tm-auth-soft: #f7faff;
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(0, 1fr) minmax(520px, 1fr);
    overflow: hidden;
    background: #ffffff;
    color: var(--tm-auth-ink);
    font-family: "Inter", "DM Sans", "Segoe UI", sans-serif;
}

.tm-auth-brand-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: clamp(40px, 6vw, 96px);
    overflow: hidden;
    background:
        radial-gradient(circle at 0% 0%, rgba(66, 113, 220, 0.55), transparent 34%),
        radial-gradient(circle at 86% 104%, rgba(61, 95, 176, 0.72), transparent 32%),
        linear-gradient(135deg, #0f1f3b 0%, #101a2d 42%, #11192b 100%);
}

.tm-auth-brand-panel::before,
.tm-auth-brand-panel::after {
    position: absolute;
    content: "";
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.55;
}

.tm-auth-brand-panel::before {
    width: 360px;
    height: 360px;
    top: -110px;
    left: -95px;
    background: #4f7df4;
}

.tm-auth-brand-panel::after {
    width: 310px;
    height: 310px;
    right: -100px;
    bottom: -90px;
    background: #315aa6;
}

.tm-auth-brand-grid {
    position: absolute;
    inset: 0;
    opacity: 0.09;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.45) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.45) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(circle at 50% 50%, #000, transparent 72%);
}

.tm-auth-brand-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
    color: #ffffff;
}

.tm-auth-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: clamp(34px, 5vw, 58px);
}

.tm-auth-logo img {
    display: block;
    max-width: 225px;
    max-height: 64px;
    object-fit: contain;
}

.tm-auth-brand-content h1 {
    margin: 0 0 20px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.055em;
}

.tm-auth-brand-content p {
    max-width: 520px;
    margin: 0 0 42px;
    color: #c4d3ec;
    font-size: clamp(17px, 1.6vw, 21px);
    line-height: 1.65;
}

.tm-auth-feature-list {
    display: grid;
    gap: 14px;
    max-width: 500px;
}

.tm-auth-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #f8fbff;
    font-weight: 800;
    backdrop-filter: blur(12px);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.tm-auth-feature:hover {
    transform: translateX(8px);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
}

.tm-auth-feature-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: rgba(59, 111, 245, 0.18);
    color: #6ea1ff;
}

.tm-auth-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.tm-auth-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #d6e4ff;
    font-size: 13px;
    font-weight: 700;
}

.tm-auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: clamp(30px, 5vw, 76px);
    background:
        radial-gradient(circle at 100% 0%, rgba(59, 111, 245, 0.06), transparent 30%),
        #ffffff;
}

.tm-auth-card {
    width: 100%;
    max-width: 500px;
    animation: tmAuthEnter 0.55s ease both;
}

@keyframes tmAuthEnter {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tm-auth-mobile-logo {
    display: none;
    margin-bottom: 28px;
}

.tm-auth-mobile-logo img {
    max-width: 170px;
    max-height: 48px;
}

.tm-auth-header {
    margin-bottom: 30px;
}

.tm-auth-header h2 {
    margin: 0 0 8px;
    color: #06142b;
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.tm-auth-header p {
    margin: 0;
    color: var(--tm-auth-muted);
    font-size: 16px;
}

.tm-auth-form {
    display: grid;
    gap: 18px;
}

.tm-auth-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tm-auth-field {
    min-width: 0;
}

.tm-auth-form .form-label,
.tm-auth-label {
    display: block;
    margin-bottom: 8px;
    color: #172946;
    font-size: 14px;
    font-weight: 800;
}

.tm-auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.tm-auth-label-row .tm-auth-label {
    margin-bottom: 0;
}

.tm-auth-link {
    color: var(--tm-auth-blue);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.tm-auth-link:hover {
    color: var(--tm-auth-blue-dark);
    text-decoration: underline;
}

.tm-auth-under-input {
    margin-top: 9px;
    text-align: right;
}

.tm-auth-input-wrap {
    position: relative;
}

.tm-auth-input-icon {
    position: absolute;
    top: 50%;
    left: 17px;
    z-index: 2;
    color: #90a1bb;
    transform: translateY(-50%);
    pointer-events: none;
}

.tm-auth-control {
    width: 100%;
    min-height: 52px;
    padding: 13px 16px 13px 46px;
    border: 1px solid var(--tm-auth-border);
    border-radius: 12px;
    background: #ffffff;
    color: #1a2d4a;
    font-size: 16px;
    font-weight: 600;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.tm-auth-control::placeholder {
    color: #8a98ad;
    font-weight: 500;
}

.tm-auth-control:focus {
    border-color: rgba(59, 111, 245, 0.75);
    box-shadow: 0 0 0 4px rgba(59, 111, 245, 0.12);
}

.tm-auth-control.is-invalid {
    border-color: #dc3545;
}

.tm-auth-password-control {
    padding-right: 52px;
}

.tm-auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 16px;
    z-index: 3;
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #8da0bb;
    transform: translateY(-50%);
    transition: color 0.18s ease, background 0.18s ease;
}

.tm-auth-password-toggle:hover,
.tm-auth-password-toggle:focus {
    background: #eef4ff;
    color: var(--tm-auth-blue);
}

.tm-auth-check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: -2px;
}

.tm-auth-form .form-check-label {
    color: #172946;
    font-weight: 600;
}

.tm-auth-form .form-check-input {
    border-color: #cbd6e4;
}

.tm-auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    margin-top: 12px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #4779ff, #2f63ea);
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.tm-auth-submit:hover,
.tm-auth-submit:focus {
    color: #ffffff;
    filter: saturate(1.08);
    transform: translateY(-1px);
}

.tm-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 20px;
    color: #8796ac;
    font-size: 14px;
    text-align: center;
}

.tm-auth-divider::before,
.tm-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e3e9f2;
}

.tm-auth-social-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tm-auth-social-grid.is-single {
    grid-template-columns: 1fr;
}

.tm-auth-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 12px;
    color: #14243c;
    border: 1px solid var(--tm-auth-border);
    background: #ffffff;
    font-weight: 900;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tm-auth-social-btn:hover {
    color: #14243c;
    border-color: #c5d1e1;
    box-shadow: 0 12px 24px rgba(14, 29, 54, 0.08);
    transform: translateY(-1px);
}

.tm-auth-social-btn.is-google {
    border-color: #ea4335;
    background: #ea4335;
    color: #ffffff;
}

.tm-auth-social-btn.is-google:hover {
    border-color: #d93025;
    background: #d93025;
    color: #ffffff;
}

.tm-auth-social-btn.is-google i {
    color: #ffffff;
}

.tm-auth-social-btn.is-facebook {
    border-color: #2478ee;
    background: #2478ee;
    color: #ffffff;
}

.tm-auth-social-btn.is-facebook:hover {
    color: #ffffff;
    border-color: #1769d8;
    background: #1769d8;
}

.tm-auth-footer {
    margin-top: 26px;
    color: #172946;
    font-size: 16px;
    text-align: center;
}

.tm-auth-footer a,
.tm-auth-terms a {
    color: var(--tm-auth-blue);
    font-weight: 900;
    text-decoration: none;
}

.tm-auth-footer a:hover,
.tm-auth-terms a:hover {
    text-decoration: underline;
}

.tm-auth-terms {
    max-width: 430px;
    margin: 16px auto 0;
    color: #8a98ad;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.tm-auth-demo-box,
.tm-auth-alert {
    margin-bottom: 22px;
    padding: 16px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid #e0e8f3;
}

.tm-auth-demo-box p {
    margin-bottom: 12px;
    color: #34445f;
    font-weight: 700;
}

.tm-auth-demo-box .table {
    margin-bottom: 0;
    font-size: 14px;
}

.tm-auth-captcha {
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 4px 0;
    text-align: left;
}

.tm-auth-status-note {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
}

.tm-auth-status-note i {
    margin-top: 2px;
}

.tm-auth-verify-illustration {
    display: grid;
    place-items: center;
    width: 118px;
    height: 118px;
    margin: 0 auto 24px;
    border-radius: 32px;
    background: linear-gradient(135deg, #edf4ff, #ffffff);
    border: 1px solid #e3ecf8;
}

.tm-auth-verify-illustration img {
    max-width: 82px;
    max-height: 82px;
}

@media (max-width: 1100px) {
    .tm-auth-wrapper-modern {
        grid-template-columns: minmax(0, 0.88fr) minmax(500px, 1fr);
    }

    .tm-auth-brand-panel {
        padding: 42px;
    }
}

@media (max-width: 991.98px) {
    .tm-auth-wrapper-modern {
        display: block;
        min-height: 100vh;
        padding: 22px;
        background:
            radial-gradient(circle at 8% 0%, rgba(59, 111, 245, 0.24), transparent 34%),
            linear-gradient(135deg, #0f1f3b, #11192b);
    }

    .tm-auth-brand-panel {
        display: none;
    }

    .tm-auth-form-panel {
        min-height: calc(100vh - 44px);
        padding: 0;
        background: transparent;
    }

    .tm-auth-card {
        max-width: 560px;
        padding: 30px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 28px;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 28px 70px rgba(3, 11, 28, 0.28);
    }

    .tm-auth-mobile-logo {
        display: inline-flex;
    }
}

@media (max-width: 575.98px) {
    .tm-auth-wrapper-modern {
        padding: 14px;
    }

    .tm-auth-card {
        padding: 22px;
        border-radius: 22px;
    }

    .tm-auth-grid,
    .tm-auth-social-grid {
        grid-template-columns: 1fr;
    }

    .tm-auth-check-row,
    .tm-auth-label-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .tm-auth-header h2 {
        font-size: 30px;
    }
}
