/* ===== WRAPPER ===== */
.reg-wrapper {
    max-width: 460px;
    margin: 40px auto;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
}

.reg-title {
    text-align: center;
    font-size: 30px;
    font-weight: 630;
    margin-bottom: 26px;
}

/* ===== CARD ===== */
.reg-card {
    background: #fff;
    border-radius: 8px;
    padding: 28px 32px 32px;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

/* ===== GRID FOR NAME ===== */
.reg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ===== MATERIAL FIELD ===== */
.reg-field {
    position: relative;
    margin-bottom: 28px;
}

.reg-field label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.reg-field input,
.reg-field select {
    width: 100%;
    border: none;
    border-bottom: 1px solid #d1d5db;
    border-radius: 0;
    padding: 8px 36px 10px 0;
    font-size: 15px;
    background: transparent;
    outline: none;
}

.reg-field input:focus,
.reg-field select:focus {
    border-bottom-color: #0056D2;
    box-shadow: none;
}

/* ===== ICON ===== */
.reg-icon {
    position: absolute;
    right: 0;
    bottom: 10px;
    width: 20px;
    height: 20px;
    color: #6b7280;
    cursor: pointer;
}

.reg-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.75;
}

/* ===== PASSWORD STRENGTH ===== */
.pass-meter {
    height: 4px;
    background: #e5e7eb;
    margin-top: 8px;
    border-radius: 2px;
    overflow: hidden;
}

.pass-meter span {
    display: block;
    height: 100%;
    width: 0;
    transition: width .3s ease;
}

.pass-text {
    font-size: 13px;
    margin-top: 6px;
}

/* ===== BUTTON ===== */
.reg-btn {
    width: 100%;
    background: #0056D2;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* ===== LOGIN LINK ===== */
.reg-login {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
}

.reg-login a,
.reg-login a:hover {
    color: #0056D2;
    text-decoration: none;
    font-weight: 600;
}

    .account-type-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 6px;
}

.account-type input {
    display: none;
}

.account-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #d1d5db;
    cursor: pointer;
    transition: .2s ease;
}

.account-box svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.75;
    color: #6b7280;
    margin-top: 2px;
}

.account-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.account-text strong {
    font-size: 15px;
    color: #111827;
}

.account-text small {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* Selected state */
.account-type input:checked + .account-box {
    border-bottom-color: #0056D2;
}

.account-type input:checked + .account-box svg,
.account-type input:checked + .account-box strong {
    color: #0056D2;
}

.reg-error {
    max-width: 460px;
    margin: 0 auto 20px;
    padding: 12px 14px;
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 6px;
    font-size: 14px;
}

.reg-error a {
    color: inherit;
    font-weight: 600;
    border-bottom: 1px solid currentColor;
    text-decoration: none !important;
}

.reg-error a:hover {
    opacity: 0.8;
}

.ttj-success-msg {
    width: 100%;
    max-width: 460px; /* SAME as form */
    margin: 20px auto 20px; /* center + spacing */
    padding: 14px 16px;

    background: #ecfdf5;
    border: 1px solid #16a34a;
    border-radius: 8px;

    color: #065f46;
    font-size: 14px;
    line-height: 1.5;

    text-align: center;
}

/* kuhakikisha inakaa aligned na form container */
.reg-wrapper .ttj-success-msg {
    max-width: 460px;
}

.ttj-verify-wrapper {
    min-height: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ttj-verify-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    padding: 40px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.ttj-verify-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success { background:#dcfce7; color:#16a34a; }
.error { background:#fee2e2; color:#dc2626; }
.pending { background:#e0f2fe; color:#0284c7; }

.ttj-btn-primary {
    background:#2563eb;
    color:#fff;
    padding:12px 20px;
    border-radius:8px;
    display:inline-block;
    text-decoration: none !important;
}

.ttj-btn-secondary {
    background:#e5e7eb;
    color:#111;
    padding:12px 20px;
    border-radius:8px;
    text-decoration: none !important;
}