* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--tems-font-body, Arial, Helvetica, sans-serif);
}

body {
    background: linear-gradient(135deg, var(--tems-color-heading), var(--tems-color-blue-dark), var(--tems-color-red));
    min-height: 100vh;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.register-container {
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    background: var(--tems-surface);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 40px color-mix(in srgb, var(--tems-color-black) 25%, transparent);
}

.left-panel {
    background: linear-gradient(160deg, var(--tems-color-heading), var(--tems-color-blue-dark), var(--tems-color-red));
    color: var(--tems-color-on-brand);
    padding: 50px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.left-panel h1 {
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.left-panel p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--tems-auth-panel-muted);
}

.right-panel {
    padding: 40px 35px;
    background: var(--tems-surface);
}

.right-panel h2 {
    font-size: 30px;
    color: var(--tems-color-heading);
    margin-bottom: 20px;
}

.message {
    background: var(--tems-danger-bg);
    color: var(--tems-color-red);
    border: 1px solid var(--tems-danger-border);
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
}

.required-note {
    font-size: 13px;
    color: var(--tems-color-muted);
    margin-bottom: 18px;
}

.required-note span,
.required-mark {
    color: var(--tems-color-red);
    font-weight: bold;
}

.register-form {
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 7px;
    color: var(--tems-color-text);
}

.mini-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 4px;
    border-radius: 50%;
    background: var(--tems-color-blue);
    color: var(--tems-color-on-brand);
    font-size: 11px;
    font-weight: 800;
    cursor: help;
}

.input-group input,
.input-group select {
    padding: 12px 14px;
    border: 1px solid var(--tems-border-strong);
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    transition: 0.3s;
    background: var(--tems-surface-subtle);
    width: 100%;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--tems-color-blue);
    background: var(--tems-surface);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tems-color-blue) 12%, transparent);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--tems-color-muted);
    font-size: 16px;
    transition: 0.3s ease;
}

.toggle-password:hover {
    color: var(--tems-color-blue);
}


.password-field {
    gap: 0;
}

.password-policy-card {
    position: relative;
    padding: 18px;
    border: 1px solid var(--tems-info-border);
    border-radius: 16px;
    background: linear-gradient(135deg, var(--tems-info-bg), var(--tems-warning-bg));
    box-shadow: 0 10px 24px color-mix(in srgb, var(--tems-color-blue-dark) 8%, transparent);
    overflow: hidden;
}

.password-policy-card::before {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    right: -35px;
    top: -45px;
    background: color-mix(in srgb, var(--tems-color-red) 12%, transparent);
    border-radius: 50%;
}

.policy-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.policy-eyebrow {
    display: inline-block;
    margin-bottom: 4px;
    color: var(--tems-color-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.policy-header h3 {
    color: var(--tems-color-heading);
    font-size: 17px;
    line-height: 1.35;
}

.strength-pill {
    flex-shrink: 0;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--tems-border);
    color: var(--tems-color-muted);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.strength-pill.in-progress {
    background: var(--tems-warning-bg);
    color: var(--tems-warning-text);
}

.strength-pill.ready {
    background: var(--tems-success-bg);
    color: var(--tems-success-text);
}

.strength-meter {
    position: relative;
    height: 9px;
    margin-bottom: 15px;
    border-radius: 999px;
    background: var(--tems-border);
    overflow: hidden;
}

.strength-meter span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--tems-color-red), var(--tems-warning-text), var(--tems-success-text));
    transition: width 0.3s ease;
}

.policy-checklist {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    list-style: none;
}

.policy-checklist li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--tems-color-muted);
    font-size: 13px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.policy-checklist i {
    width: 16px;
    color: var(--tems-color-muted);
    font-size: 15px;
    transition: color 0.2s ease;
}

.policy-checklist li.valid {
    color: var(--tems-success-text);
}

.policy-checklist li.valid i {
    color: var(--tems-success-text);
}

.full-width {
    grid-column: 1 / 3;
}

.register-btn {
    width: 100%;
    margin-top: 22px;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--tems-color-red), var(--tems-color-blue));
    color: var(--tems-color-on-brand);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

.register-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.login-link {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
    color: var(--tems-color-text);
}

.login-link a {
    color: var(--tems-color-blue);
    text-decoration: none;
    font-weight: bold;
}

.login-link a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .register-container {
        grid-template-columns: 1fr;
    }

    .left-panel {
        padding: 35px 25px;
    }

    .right-panel {
        padding: 30px 25px;
    }
}

@media (max-width: 600px) {
    .page-wrapper {
        padding: 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: 1 / 2;
    }

    .left-panel h1 {
        font-size: 28px;
    }

    .right-panel h2 {
        font-size: 26px;
    }

    .right-panel {
        padding: 24px 20px;
    }


    .policy-header {
        flex-direction: column;
    }

    .policy-checklist {
        grid-template-columns: 1fr;
    }

    .input-group input,
    .input-group select {
        font-size: 14px;
    }
}

.input-group textarea {
    padding: 12px 14px;
    border: 1px solid var(--tems-border-strong);
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    transition: 0.3s;
    background: var(--tems-surface-subtle);
    width: 100%;
    resize: vertical;
    min-height: 92px;
}

.input-group textarea:focus {
    border-color: var(--tems-color-blue);
    background: var(--tems-surface);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tems-color-blue) 12%, transparent);
}

.waiver-modal {
    position: fixed;
    inset: 0;
    background: color-mix(in srgb, var(--tems-color-heading) 68%, transparent);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
}

.waiver-modal.is-open {
    display: flex;
}

.waiver-dialog {
    width: min(620px, 100%);
    background: var(--tems-surface);
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 24px 60px color-mix(in srgb, var(--tems-color-black) 35%, transparent);
    color: var(--tems-color-heading);
}

.waiver-dialog h3 {
    margin: 0 0 14px;
    font-size: 24px;
}

.waiver-dialog p {
    line-height: 1.6;
    color: var(--tems-color-text);
    margin-bottom: 18px;
}

.waiver-check {
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 700;
    margin-bottom: 8px;
}

.waiver-check input {
    width: 18px;
    height: 18px;
}

.waiver-error {
    display: none;
    color: var(--tems-color-red);
    font-weight: 700;
    margin: 8px 0;
}

.waiver-error.is-visible {
    display: block;
}

.waiver-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
}

.waiver-btn {
    border: 0;
    border-radius: 12px;
    padding: 11px 16px;
    font-weight: 800;
    cursor: pointer;
}

.waiver-btn.primary {
    background: var(--tems-color-blue);
    color: var(--tems-color-on-brand);
}

.waiver-btn.secondary {
    background: var(--tems-danger-bg);
    color: var(--tems-danger-text);
}
.belt-registration-fields { padding: 16px; border: 1px solid var(--tems-info-bg); border-radius: 14px; background: var(--tems-surface-blue); }
.field-help { margin: 6px 0 10px; color: var(--tems-color-muted); font-size: 13px; line-height: 1.5; }
input[type="file"] { width: 100%; padding: 10px; border: 1px dashed var(--tems-color-muted); border-radius: 10px; background: var(--tems-surface); }

.registration-label-row { display: flex; align-items: center; gap: 8px; }
.input-group .registration-label-row label { margin: 0; }
