.otpgate-form-wrap {
    max-width: 440px;
    margin: 0 auto;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.otpgate-heading {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
    text-align: center;
}

.otpgate-subheading {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 24px;
}

.otpgate-method-toggle {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #333;
}

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

.otpgate-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.otpgate-field label .req {
    color: #e74c3c;
}

.otpgate-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.otpgate-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    color: #222;
    outline: none;
    transition: border-color .2s;
    background: #fafafa;
}

.otpgate-input:focus {
    border-color: #0f3460;
    background: #fff;
}

.otpgate-btn {
    padding: 11px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    transition: all .2s;
}

.otpgate-btn-primary {
    background: #0f3460;
    color: #fff;
    width: 100%;
    font-size: 16px;
    padding: 13px;
    margin-top: 8px;
}

.otpgate-btn-primary:hover { background: #16213e; }
.otpgate-btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.otpgate-btn-outline {
    background: transparent;
    color: #0f3460;
    border: 2px solid #0f3460;
    min-width: 100px;
}

.otpgate-btn-outline:hover { background: #0f3460; color: #fff; }
.otpgate-btn-outline:disabled { opacity: .5; cursor: not-allowed; }

.otpgate-otp-box {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 12px;
    padding: 14px;
    border-color: #0f3460;
}

.otpgate-msg {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 10px;
}

.otpgate-msg.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.otpgate-msg.error   { background: #fce4ec; color: #c62828; border: 1px solid #ef9a9a; }
.otpgate-msg.info    { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }

.otpgate-success {
    width: 70px;
    height: 70px;
    background: #27ae60;
    color: #fff;
    font-size: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    animation: otpPop .4s ease;
}

@keyframes otpPop {
    0%   { transform: scale(0); opacity: 0; }
    80%  { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

#otpgate-resend, #otpgate-back {
    color: #0f3460;
    font-size: 13px;
    text-decoration: none;
}

#otpgate-resend:hover, #otpgate-back:hover { text-decoration: underline; }

.otpgate-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .6s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}

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