/*
|--------------------------------------------------------------------------
| STEP 72-B2 SIGMA SPEAK PUBLIC REGISTRATION
|--------------------------------------------------------------------------
*/

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background:
        radial-gradient(
            circle at top,
            #eef2ff 0,
            #f8fafc 42%,
            #f8fafc 100%
        );
    color: #111827;
}

.register-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.register-card {
    width: min(100%, 480px);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 30px;
    box-shadow:
        0 20px 45px
        rgba(15, 23, 42, 0.08);
}

.register-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.register-brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #6d5dfc;
    color: #ffffff;
    font-weight: 800;
    font-size: 22px;
}

.register-brand h1 {
    margin: 0;
    font-size: 20px;
}

.register-brand p {
    margin: 3px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.register-heading {
    margin-bottom: 24px;
}

.register-heading h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

.register-heading p {
    margin: 10px 0 0;
    color: #6b7280;
    line-height: 1.6;
    font-size: 14px;
}

.form-field {
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
}

.form-field input {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    font: inherit;
    color: inherit;
    outline: none;
}

.form-field input:focus {
    border-color: #6d5dfc;
    box-shadow:
        0 0 0 3px
        rgba(109, 93, 252, 0.12);
}

#registerBtn {
    width: 100%;
    min-height: 46px;
    margin-top: 6px;
    border: 0;
    border-radius: 10px;
    background: #6d5dfc;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

#registerBtn:hover {
    filter: brightness(0.96);
}

#registerBtn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.register-message {
    min-height: 20px;
    margin-top: 14px;
    text-align: center;
    font-size: 14px;
}

.register-message.is-error {
    color: #b91c1c;
}

.register-message.is-success {
    color: #047857;
}

.register-login-link {
    margin: 18px 0 0;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.register-login-link a {
    color: #5b4df5;
    font-weight: 700;
    text-decoration: none;
}

.register-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.register-legal-links a {
    color: #6b7280;
    font-size: 12px;
    text-decoration: none;
}

.register-legal-links a:hover,
.register-login-link a:hover {
    text-decoration: underline;
}

@media (max-width: 520px) {
    .register-card {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .register-heading h2 {
        font-size: 24px;
    }
}

/* =========================================================
   STEP 72-B8H8C OTP REGISTRATION UI
   ========================================================= */

.otp-section[hidden] {
    display: none;
}

.otp-section {
    margin-top: 4px;
}

.otp-heading {
    margin-bottom: 20px;
    text-align: center;
}

.otp-heading h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
}

.otp-heading p {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

#otpCode {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.25em;
}

#verifyOtpBtn {
    width: 100%;
    min-height: 46px;
    margin-top: 6px;
    border: 0;
    border-radius: 10px;
    background: #6d5dfc;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

#verifyOtpBtn:hover {
    filter: brightness(0.96);
}

#verifyOtpBtn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.otp-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
    color: #6b7280;
    font-size: 13px;
}

#resendOtpBtn {
    padding: 0;
    border: 0;
    background: transparent;
    color: #5b4df5;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

#resendOtpBtn:hover:not(:disabled) {
    text-decoration: underline;
}

#resendOtpBtn:disabled {
    color: #9ca3af;
    cursor: not-allowed;
}
