.tr-auth-shell,
.tr-dashboard,
.tr-auth-simple-card {
    --tr-navy: #0B315F;
    --tr-red: #EF334F;
    --tr-green: #2E8B3C;
    --tr-bg: #F8FAFC;
    --tr-text: #10233F;
    --tr-muted: #64748B;
    --tr-border: #E2E8F0;
    width: min(calc(100% - 28px), 1040px);
    margin: clamp(34px, 6vw, 74px) auto;
    color: var(--tr-text);
}

.tr-auth-shell * ,
.tr-dashboard *,
.tr-auth-simple-card * {
    box-sizing: border-box;
}

.tr-auth-shell-narrow {
    max-width: 720px;
}

.tr-auth-intro {
    margin-bottom: 22px;
    text-align: center;
}

.tr-auth-intro > span,
.tr-dashboard-hero > div > span {
    color: var(--tr-red);
    font-weight: 800;
}

.tr-auth-intro h1,
.tr-dashboard-hero h1 {
    margin: 8px 0;
    color: var(--tr-navy);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    line-height: 1.25;
}

.tr-auth-intro p,
.tr-dashboard-hero p {
    margin: 0;
    color: var(--tr-muted);
}

.tr-auth-card,
.tr-auth-simple-card,
.tr-dashboard-hero,
.tr-dashboard-card,
.tr-account-banner {
    border: 1px solid var(--tr-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(11, 49, 95, .07);
}

.tr-auth-card {
    padding: clamp(22px, 4vw, 38px);
}

.tr-account-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-bottom: 24px;
    padding: 6px;
    border-radius: 14px;
    background: #f1f5f9;
}

.tr-account-switch a {
    display: grid;
    min-height: 44px;
    place-items: center;
    border-radius: 10px;
    color: var(--tr-muted) !important;
    font-weight: 800;
    text-decoration: none !important;
}

.tr-account-switch a.is-active {
    color: var(--tr-navy) !important;
    background: #fff;
    box-shadow: 0 5px 14px rgba(15, 23, 42, .07);
}

.tr-auth-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tr-auth-shell-narrow .tr-auth-form {
    grid-template-columns: 1fr;
}

.tr-auth-form > label {
    display: grid;
    gap: 7px;
}

.tr-auth-form > label > span {
    color: var(--tr-navy);
    font-size: 14px;
    font-weight: 800;
}

.tr-auth-form input:not([type="checkbox"]) {
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid var(--tr-border);
    border-radius: 12px;
    background: #fff;
    font: inherit;
}

.tr-auth-form input:focus {
    border-color: var(--tr-navy);
    box-shadow: 0 0 0 4px rgba(11, 49, 95, .08);
    outline: none;
}

.tr-auth-form small {
    color: var(--tr-muted);
    font-size: 12px;
}

.tr-auth-form .tr-checkbox {
    display: flex;
    grid-column: 1 / -1;
    align-items: flex-start;
    gap: 9px;
    padding: 13px;
    border-radius: 12px;
    background: #f8fafc;
}

.tr-auth-form .tr-checkbox input {
    margin-top: 6px;
}

.tr-auth-form button {
    grid-column: 1 / -1;
    min-height: 52px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: var(--tr-navy);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.tr-auth-form button:hover {
    background: var(--tr-red);
}

.tr-auth-footer,
.tr-auth-links {
    margin: 20px 0 0;
    text-align: center;
}

.tr-auth-links {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.tr-auth-footer a,
.tr-auth-links a {
    color: var(--tr-navy);
    font-weight: 800;
}

.tr-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.tr-auth-message {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 700;
}

.tr-auth-message-success {
    color: #166534;
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
}

.tr-auth-message-error {
    color: #991b1b;
    border: 1px solid #fecaca;
    background: #fef2f2;
}

.tr-auth-simple-card {
    max-width: 620px;
    padding: 34px;
    text-align: center;
}

.tr-auth-simple-card h2 {
    margin-top: 0;
    color: var(--tr-navy);
}

.tr-auth-simple-card a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    padding: 9px 17px;
    border-radius: 11px;
    color: #fff !important;
    background: var(--tr-navy);
    font-weight: 800;
    text-decoration: none !important;
}

.tr-account-banner {
    display: flex;
    gap: 9px 18px;
    align-items: center;
    margin-bottom: 16px;
    padding: 15px 18px;
    box-shadow: none;
}

.tr-account-banner span {
    color: inherit;
    opacity: .85;
}

.tr-account-banner-warning {
    color: #92400e;
    border-color: #fde68a;
    background: #fffbeb;
}

.tr-account-banner-success {
    color: #166534;
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.tr-account-banner-error {
    color: #991b1b;
    border-color: #fecaca;
    background: #fef2f2;
}

.tr-dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(26px, 5vw, 48px);
    background:
        radial-gradient(circle at 8% 88%, rgba(239, 51, 79, .08), transparent 23rem),
        #fff;
}

.tr-dashboard-business {
    color: #fff;
    border-color: transparent;
    background:
        radial-gradient(circle at 8% 88%, rgba(239, 51, 79, .28), transparent 24rem),
        linear-gradient(135deg, #0B315F, #164B80);
}

.tr-dashboard-business h1,
.tr-dashboard-business p,
.tr-dashboard-business > div > span {
    color: #fff;
}

.tr-dashboard-hero > a {
    flex: 0 0 auto;
    color: var(--tr-navy);
    font-weight: 800;
}

.tr-dashboard-business > a {
    color: #fff;
}

.tr-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.tr-dashboard-card {
    padding: 25px;
}

.tr-dashboard-card h2 {
    margin: 0 0 9px;
    color: var(--tr-navy);
    font-size: 21px;
}

.tr-dashboard-card p {
    min-height: 52px;
    margin: 0 0 18px;
    color: var(--tr-muted);
}

.tr-dashboard-card a {
    color: var(--tr-red);
    font-weight: 800;
    text-decoration: none;
}

.tr-dashboard-card.is-disabled {
    opacity: .55;
}

@media (max-width: 700px) {
    .tr-auth-form,
    .tr-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .tr-dashboard-hero {
        display: block;
    }

    .tr-dashboard-hero > a {
        display: inline-block;
        margin-top: 18px;
    }

    .tr-account-banner {
        display: grid;
    }

    .tr-auth-links {
        display: grid;
    }
}
