/* OTP Login Form Styles */

#iwai-otp-wrap {
    margin-top: 0;
}

/* Email / Phone toggle */
.iwai-otp-toggle {
    display: flex;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.iwai-otp-toggle-btn {
    flex: 1;
    padding: 8px 0;
    border: none;
    background: #f6f7f7;
    color: #50575e;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    line-height: 1.4;
}

.iwai-otp-toggle-btn + .iwai-otp-toggle-btn {
    border-left: 1px solid #c3c4c7;
}

.iwai-otp-toggle-btn:hover {
    background: #edeff0;
}

.iwai-otp-toggle-btn.active {
    background: #2271b1;
    color: #fff;
}

#iwai-otp-wrap label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #1e1e1e;
}

#iwai-otp-wrap .input,
#iwai-otp-wrap input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    font-size: 16px;
    box-sizing: border-box;
}

.iwai-otp-helper {
    display: block;
    margin-top: -1em;
    margin-bottom: 1.5em;
    font-size: 12px;
    color: #757575;
    line-height: 1.4;
}

#iwai-otp-code {
    text-align: center;
    font-size: 24px !important;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 6px;
    padding: 12px !important;
}

#iwai-otp-wrap .submit {
    margin-top: 20px;
}

#iwai-otp-wrap .button-primary {
    width: 100%;
    height: auto;
    padding: 8px 16px;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

#iwai-otp-wrap .button-primary:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Messages */
.iwai-otp-msg {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    margin: 12px 0;
}

.iwai-otp-msg-info {
    background-color: #f0f6fc;
    border-left: 4px solid #2271b1;
    color: #1e1e1e;
}

.iwai-otp-msg-error {
    background-color: #fcf0f1;
    border-left: 4px solid #d63638;
    color: #1e1e1e;
}

.iwai-otp-error-detail {
    margin: 8px 0 0;
    padding: 8px 10px;
    background: #f9e2e3;
    border-radius: 3px;
    font-size: 11px;
    font-family: 'Courier New', Courier, monospace;
    color: #8b1a1d;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-wrap: break-word;
    max-height: 120px;
    overflow-y: auto;
}

.iwai-otp-msg-success {
    background-color: #edfaef;
    border-left: 4px solid #00a32a;
    color: #1e1e1e;
}

/* Sent-to info */
.iwai-otp-info {
    font-size: 14px;
    color: #50575e;
    margin-bottom: 16px;
}

/* Links row */
.iwai-otp-links {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
}

.iwai-otp-links a {
    text-decoration: none;
    color: #2271b1;
}

.iwai-otp-links a:hover {
    color: #135e96;
    text-decoration: underline;
}

.iwai-otp-separator {
    margin: 0 8px;
    color: #c3c4c7;
}

.iwai-otp-disabled {
    color: #a7aaad !important;
    cursor: default;
    pointer-events: none;
}

/* Password fallback link */
.iwai-otp-password-fallback {
    text-align: center;
    margin-top: 1em;
    font-size: 13px;
}

.iwai-otp-password-fallback a {
    color: #50575e;
    text-decoration: none;
}

.iwai-otp-password-fallback a:hover {
    color: #2271b1;
    text-decoration: underline;
}

/* Login page callout cards */
#iwai-login-callouts {
    max-width: 320px;
    margin: 20px auto 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.iwai-callout {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 12px;
    line-height: 1.5;
    color: #787c82;
}

.iwai-callout a {
    color: #787c82;
    text-decoration: underline;
}

.iwai-callout a:hover {
    color: #2271b1;
}
