/* SMS OTP Auth — Frontend Styles */

.soa-wrap {
    max-width: 420px;
    margin: 40px auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 36px 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.soa-wrap h3 {
    margin: 0 0 6px;
    font-size: 22px;
    color: #1a202c;
    font-weight: 700;
}

.soa-desc {
    margin: 0 0 24px;
    color: #718096;
    font-size: 14px;
    line-height: 1.5;
}

/* Form Group */
.soa-form-group {
    margin-bottom: 18px;
}

.soa-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
}

.soa-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e0;
    border-radius: 8px;
    font-size: 15px;
    color: #2d3748;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    outline: none;
    background: #f7fafc;
}

.soa-input:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66,153,225,.18);
    background: #fff;
}

/* Mobile row with country code */
.soa-mobile-row {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid #cbd5e0;
    border-radius: 8px;
    overflow: hidden;
    background: #f7fafc;
    transition: border-color .2s, box-shadow .2s;
}

.soa-mobile-row:focus-within {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66,153,225,.18);
    background: #fff;
}

.soa-country-code {
    padding: 10px 12px;
    background: #edf2f7;
    color: #4a5568;
    font-size: 15px;
    font-weight: 600;
    border-right: 1.5px solid #cbd5e0;
    user-select: none;
}

.soa-mobile-row .soa-input {
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    flex: 1;
}

.soa-mobile-row .soa-input:focus {
    box-shadow: none;
    border: none;
}

/* OTP input */
.soa-otp-input {
    font-size: 28px !important;
    letter-spacing: 10px;
    text-align: center;
    font-weight: 700;
    padding: 12px 14px !important;
}

/* Buttons */
.soa-btn {
    display: inline-block;
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s, opacity .2s;
    text-align: center;
    margin-top: 6px;
}

.soa-btn:active {
    transform: scale(.98);
}

.soa-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.soa-btn-primary {
    background: #3b82f6;
    color: #fff;
}

.soa-btn-primary:hover:not(:disabled) {
    background: #2563eb;
}

.soa-btn-link {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    margin-top: 10px;
    display: inline-block;
}

.soa-btn-link:hover {
    color: #2563eb;
}

/* Messages */
.soa-msg {
    margin: 10px 0;
    padding: 10px 14px;
    border-radius: 7px;
    font-size: 13.5px;
    line-height: 1.5;
    display: none;
}

.soa-msg.soa-error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
    display: block;
}

.soa-msg.soa-success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #c6f6d5;
    display: block;
}

/* Steps */
.soa-hidden {
    display: none !important;
}

/* Resend row */
.soa-resend-row {
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
    color: #718096;
}

#soa-reg-resend-timer,
#soa-login-resend-timer {
    display: inline-block;
}

/* Success step */
.soa-success-icon {
    width: 60px;
    height: 60px;
    background: #48bb78;
    color: #fff;
    border-radius: 50%;
    font-size: 30px;
    line-height: 60px;
    text-align: center;
    margin: 0 auto 18px;
}

/* Login / register link */
.soa-login-link {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: #718096;
}

.soa-login-link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

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

/* Spinner */
.soa-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: soa-spin .7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes soa-spin {
    to { transform: rotate(360deg); }
}

/* Admin */
.soa-admin-wrap .soa-settings-table th {
    vertical-align: middle;
}

@media (max-width: 480px) {
    .soa-wrap {
        padding: 24px 18px;
        margin: 16px;
    }
}
