/* ══ TIMP Register — Responsive ══ */
.treg-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: #f5f4ff;
}
.treg-card {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 32px rgba(91,79,207,.1);
}
.treg-header {
    background: #5b4fcf;
    padding: 28px 24px;
    text-align: center;
}
.treg-logo {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: .5px;
}
.treg-tagline {
    font-size: 12px;
    color: rgba(255,255,255,.65);
    margin: 5px 0 0;
}
.treg-body {
    padding: 24px 28px 28px;
}

/* Steps */
.treg-steps {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}
.treg-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.treg-step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ede9fe;
    color: #888;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #d8d4f5;
    transition: all .2s;
}
.treg-step.active .treg-step-circle,
.treg-step.done .treg-step-circle {
    background: #5b4fcf;
    color: #fff;
    border-color: #5b4fcf;
}
.treg-step-label {
    font-size: 10px;
    color: #aaa;
    white-space: nowrap;
    transition: color .2s;
}
.treg-step.active .treg-step-label,
.treg-step.done .treg-step-label {
    color: #5b4fcf;
}
.treg-step-line {
    flex: 1;
    height: 1px;
    background: #ede9fe;
    margin: 0 4px 14px;
}

/* Panels */
.treg-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px;
}
.treg-sub {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 18px;
}
.treg-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.treg-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}
.treg-opt {
    font-weight: 400;
    color: #aaa;
}
.treg-field input[type="text"],
.treg-field input[type="email"],
.treg-field input[type="tel"],
.treg-field input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 14px;
    border: 1.5px solid #e5e1fb;
    border-radius: 10px;
    background: #faf9ff;
    color: #1a1a2e;
    outline: none;
    transition: border-color .15s;
    -webkit-appearance: none;
}
.treg-field input:focus {
    border-color: #5b4fcf;
    background: #fff;
}

/* Gender */
.treg-gender {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.treg-gopt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1.5px solid #e5e1fb;
    border-radius: 10px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    -webkit-tap-highlight-color: transparent;
}
.treg-gopt:has(input:checked) {
    border-color: #5b4fcf;
    background: #f0eeff;
    color: #5b4fcf;
    font-weight: 600;
}
.treg-gopt input {
    accent-color: #5b4fcf;
    margin: 0;
}
.treg-privacy {
    font-size: 11px;
    color: #aaa;
    margin: 6px 0 0;
}
.treg-privacy a { color: #5b4fcf; text-decoration: none; }

/* Password */
.treg-pw-wrap {
    position: relative;
}
.treg-pw-wrap input {
    padding-right: 40px !important;
}
.treg-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    padding: 0;
    display: flex;
    align-items: center;
}
.treg-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 7px;
}
.treg-strength-bar {
    flex: 1;
    height: 5px;
    background: #f0eeff;
    border-radius: 4px;
    overflow: hidden;
}
#treg-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: width .3s, background .3s;
}
#treg-strength-label {
    font-size: 11px;
    min-width: 80px;
    font-weight: 600;
}
.treg-match {
    font-size: 11px;
    font-weight: 600;
    margin: 5px 0 0;
    min-height: 16px;
}

/* Token inputs */
.treg-token-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 16px 0;
}
.treg-digit {
    width: 44px !important;
    height: 52px !important;
    padding: 0 !important;
    text-align: center;
    font-size: 22px !important;
    font-weight: 700;
    border: 1.5px solid #e5e1fb !important;
    border-radius: 10px !important;
    background: #faf9ff !important;
    color: #5b4fcf !important;
    caret-color: #5b4fcf;
}
.treg-digit:focus {
    border-color: #5b4fcf !important;
    background: #fff !important;
}

/* Buttons */
.treg-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #5b4fcf;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: opacity .15s;
    -webkit-tap-highlight-color: transparent;
}
.treg-btn:hover { opacity: .9; }
.treg-btn:disabled { opacity: .5; cursor: not-allowed; }
.treg-btn-outline {
    display: block;
    width: 100%;
    padding: 11px;
    background: none;
    border: 1.5px solid #5b4fcf;
    border-radius: 12px;
    color: #5b4fcf;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    margin-top: 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.treg-back {
    background: none;
    border: none;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    padding: 4px 0;
    width: 100%;
    text-align: center;
}
.treg-terms {
    font-size: 11px;
    color: #aaa;
    text-align: center;
    line-height: 1.6;
    margin: 0;
}
.treg-terms a { color: #5b4fcf; text-decoration: none; }

/* Error */
.treg-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: #991b1b;
    margin-bottom: 14px;
    line-height: 1.5;
}
.treg-error a { color: #991b1b; font-weight: 600; }

/* Resend */
.treg-resend {
    text-align: center;
    font-size: 12px;
    color: #aaa;
    margin: 10px 0 0;
}
#treg-resend-link {
    color: #5b4fcf;
    cursor: pointer;
    font-weight: 600;
}

/* Success */
.treg-success { text-align: center; }
.treg-check-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e1f5ee;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px auto 16px;
}

/* Login link */
.treg-login-link {
    text-align: center;
    font-size: 12px;
    color: #aaa;
    margin: 20px 0 0;
}
.treg-login-link a { color: #5b4fcf; text-decoration: none; font-weight: 600; }

/* Responsive */
@media (max-width: 420px) {
    .treg-body { padding: 20px 18px 24px; }
    .treg-digit { width: 38px !important; height: 46px !important; font-size: 19px !important; }
    .treg-token-inputs { gap: 7px; }
}
@media (min-width: 720px) {
    .treg-card { box-shadow: 0 8px 48px rgba(91,79,207,.13); }
}
