:root {
    --jt-navy: #071a35;
    --jt-navy-soft: #102947;
    --jt-red: #b00000;
    --jt-red-dark: #8f0000;
    --jt-bg: #f3f6f9;
    --jt-card: #ffffff;
    --jt-text: #172033;
    --jt-muted: #667085;
    --jt-border: #d8dee6;
    --jt-success: #166534;
    --jt-success-bg: #effaf1;
    --jt-error: #a80000;
    --jt-error-bg: #fff1f1;
}

.auth-shell {
    min-height: calc(100vh - 118px);
    background: var(--jt-bg);
    padding: 54px 20px;
}

.auth-layout {
    width: min(1040px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
    background: var(--jt-card);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 55px rgba(7, 26, 53, 0.13);
}

.auth-main {
    padding: 48px;
}

.auth-side {
    padding: 48px 40px;
    color: #fff;
    background:
        linear-gradient(
            150deg,
            rgba(7, 26, 53, 0.98),
            rgba(16, 41, 71, 0.98)
        );
}

.auth-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--jt-red);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.auth-title {
    margin: 0 0 14px;
    color: var(--jt-navy);
    font-size: 38px;
    line-height: 1.15;
}

.auth-intro {
    margin: 0 0 30px;
    color: var(--jt-muted);
    font-size: 16px;
    line-height: 1.65;
}

.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--jt-text);
    font-size: 14px;
    font-weight: 800;
}

.auth-form-group input,
.auth-form-group select,
.auth-form-group textarea {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--jt-border);
    border-radius: 10px;
    padding: 12px 14px;
    background: #fff;
    color: var(--jt-text);
    font: inherit;
    box-sizing: border-box;
}

.auth-form-group input:focus,
.auth-form-group select:focus,
.auth-form-group textarea:focus {
    outline: 0;
    border-color: var(--jt-red);
    box-shadow: 0 0 0 3px rgba(176, 0, 0, 0.09);
}

.auth-password-wrap {
    position: relative;
}

.auth-password-wrap input {
    padding-right: 48px;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    border: 0;
    padding: 6px;
    background: transparent;
    color: #687386;
    cursor: pointer;
}

.auth-checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0 22px;
    color: var(--jt-muted);
    font-size: 14px;
}

.auth-checkbox-row input {
    width: 18px;
    height: 18px;
}

.auth-primary-button,
.auth-primary-link {
    width: 100%;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    padding: 13px 20px;
    background: var(--jt-red);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.auth-primary-button:hover,
.auth-primary-link:hover {
    background: var(--jt-red-dark);
}

.auth-secondary-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--jt-red);
    font-weight: 800;
    text-decoration: none;
}

.auth-secondary-link:hover {
    text-decoration: underline;
}

.auth-centred-link {
    display: block;
    text-align: center;
}

.auth-message {
    margin-bottom: 22px;
    padding: 13px 15px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.auth-message-error {
    border: 1px solid #f1c5c5;
    background: var(--jt-error-bg);
    color: var(--jt-error);
}

.auth-message-success {
    border: 1px solid #bbf7d0;
    background: var(--jt-success-bg);
    color: var(--jt-success);
}

.auth-field-errors,
.auth-field-errors ul,
.auth-field-errors li,
.errorlist {
    margin: 7px 0 0;
    padding: 0;
    color: var(--jt-error);
    font-size: 13px;
    list-style: none;
}

.auth-password-rules {
    margin: 8px 0 22px;
    padding: 15px 17px;
    border-radius: 10px;
    background: #f7f9fb;
}

.auth-password-rules strong {
    display: block;
    margin-bottom: 8px;
    color: var(--jt-navy);
}

.auth-password-rules ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-password-rules li {
    margin: 6px 0;
    color: var(--jt-muted);
    font-size: 14px;
}

.auth-password-rules li::before {
    content: "✓";
    margin-right: 8px;
    color: #1f8a4c;
    font-weight: 900;
}

.auth-side h2 {
    margin: 0 0 16px;
    font-size: 28px;
    line-height: 1.25;
}

.auth-side-intro {
    margin: 0 0 25px;
    color: #d8e2ef;
    line-height: 1.65;
}

.auth-benefits {
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-benefits li {
    position: relative;
    margin: 13px 0;
    padding-left: 28px;
    color: #eef4fb;
    line-height: 1.45;
}

.auth-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ff9c9c;
    font-weight: 900;
}

.auth-side-help {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.16);
}

.auth-side-help strong {
    display: block;
    margin-bottom: 7px;
}

.auth-side-help a {
    color: #fff;
    text-decoration: underline;
}

.auth-status-icon {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 50%;
    background: #edf7f0;
    color: #18824a;
    font-size: 29px;
    font-weight: 900;
}

.auth-status-icon-error {
    background: #fff0f0;
    color: var(--jt-red);
}

.auth-actions-spaced {
    display: grid;
    gap: 12px;
}

.auth-note {
    margin-top: 20px;
    color: var(--jt-muted);
    font-size: 13px;
    line-height: 1.55;
}

.helptext {
    display: none;
}

@media (max-width: 850px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-side {
        order: -1;
    }
}

@media (max-width: 560px) {
    .auth-shell {
        padding: 24px 14px;
    }

    .auth-main,
    .auth-side {
        padding: 30px 22px;
    }

    .auth-title {
        font-size: 31px;
    }
}
