/* MiniOrange Inline OTP Login Form Styles */

/* Continue button - full width */
#mo-continue-btn {
    width: 100%;
    padding: 10px 16px;
    background-color: #00bcd4;
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    letter-spacing: 0.5px;
    line-height: 1.6;
}
#mo-continue-btn:hover {
    background-color: #00a5bb;
}
#mo-continue-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Inline OTP container */
#mo-otp-inline {
    padding: 10px 0;
}

/* Heading */
.mo-inline-heading {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

/* Subtext */
.mo-inline-subtext {
    font-size: 14px;
    color: #555;
    margin: 0 0 4px 0;
    line-height: 1.5;
}

/* Links */
.mo-inline-link {
    color: #333;
    text-decoration: underline;
    font-size: 13px;
    cursor: pointer;
    display: inline-block;
    margin-bottom: 16px;
    background: none;
    border: none;
    padding: 0;
}
.mo-inline-link:hover {
    color: #00bcd4;
}

/* OTP digit boxes container */
.mo-otp-digit-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0 16px 0;
}

/* Individual OTP digit box */
.mo-otp-digit {
    width: 44px;
    height: 52px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    border: 2px solid #ccc;
    border-radius: 4px;
    outline: none;
    padding: 0;
    background: #fff;
    color: #333;
    -moz-appearance: textfield;
}
.mo-otp-digit::-webkit-outer-spin-button,
.mo-otp-digit::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.mo-otp-digit:focus {
    border-color: #00bcd4;
    box-shadow: 0 0 0 1px #00bcd4;
}

/* Countdown timer */
.mo-inline-countdown {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin: 8px 0;
}

/* Resend link */
#mo-resend-link {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #333;
    text-decoration: underline;
    cursor: pointer;
    margin: 8px 0;
    background: none;
    border: none;
    padding: 0;
    width: 100%;
}
#mo-resend-link:hover {
    color: #00bcd4;
}

/* Sign In button */
#mo-signin-btn {
    width: 100%;
    padding: 10px 16px;
    background-color: #00bcd4;
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    margin: 16px 0 12px 0;
    line-height: 1.6;
}
#mo-signin-btn:hover {
    background-color: #00a5bb;
}
#mo-signin-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* OR divider */
.mo-inline-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 12px 0;
    color: #aaa;
    font-size: 12px;
    letter-spacing: 0.5px;
}
.mo-inline-divider::before,
.mo-inline-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}
.mo-inline-divider span {
    padding: 0 12px;
}

/* Use a Password button */
#mo-use-password-btn {
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: 2px solid #00bcd4;
    color: #00bcd4;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    line-height: 1.6;
}
#mo-use-password-btn:hover {
    background-color: #e0f7fa;
}

/* Error message */
.mo-inline-error {
    color: #dc3232;
    font-size: 13px;
    text-align: center;
    margin: 8px 0;
    display: none;
}

/* Password fallback state */
#mo-password-section {
    padding: 10px 0;
}
#mo-password-section label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}
#mo-password-section input[type="password"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}
#mo-back-to-otp {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #333;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 10px;
    background: none;
    border: none;
    padding: 0;
    width: 100%;
}
#mo-back-to-otp:hover {
    color: #00bcd4;
}

/* Loading spinner for buttons */
.mo-btn-loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: mo-spin 0.6s linear infinite;
    vertical-align: middle;
}
@keyframes mo-spin {
    to { transform: rotate(360deg); }
}

/* Hide default WP login elements when in OTP mode */
.mo-hidden {
    display: none !important;
}
