.otp-auth {
    min-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 32%),
        linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.92));
}

.otp-auth-card {
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 24px;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.14);
    padding: 34px;
}

.otp-auth-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.otp-auth-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f766e, #0ea5e9);
    color: #fff;
    font-size: 24px;
}

.otp-auth-kicker {
    margin: 0 0 3px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.otp-auth h1 {
    margin: 0;
    color: #0f172a;
    font-size: 30px;
    font-weight: 800;
}

.otp-auth-subtitle {
    margin: 0 0 22px;
    color: #64748b;
    line-height: 1.55;
}

.otp-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 6px;
    margin: 20px 0 22px;
    background: #f1f5f9;
    border-radius: 16px;
}

.otp-mode-tab {
    border: 0;
    border-radius: 12px;
    padding: 12px 10px;
    background: transparent;
    color: #475569;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.18s ease;
}

.otp-mode-tab.is-active {
    background: #fff;
    color: #0f766e;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.1);
}

.otp-panel {
    display: none;
}

.otp-panel.is-active {
    display: block;
}

.otp-form {
    display: grid;
    gap: 17px;
}

.otp-verify-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed #cbd5e1;
}

.otp-verify-form[hidden],
.otp-form[hidden] {
    display: none !important;
}

.otp-verify-form.is-revealed {
    animation: otpZoomIn 0.28s ease-out;
}

@keyframes otpZoomIn {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.otp-field label {
    display: block;
    margin-bottom: 8px;
    color: #1e293b;
    font-weight: 800;
}

.otp-field small {
    display: block;
    margin-top: 7px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.otp-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.otp-input-wrap:focus-within {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.13);
}

.otp-input-wrap span {
    width: 46px;
    color: #0f766e;
    text-align: center;
    font-size: 17px;
}

.otp-input-wrap input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 14px 14px 14px 0;
    color: #0f172a;
    font-size: 15px;
    background: transparent;
}

.otp-code-wrap input {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.24em;
}

.otp-primary-btn {
    border: 0;
    border-radius: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #0f766e, #0ea5e9);
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(14, 116, 144, 0.24);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.otp-primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(14, 116, 144, 0.3);
}

.otp-primary-btn:disabled,
.otp-link-btn:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
}

.otp-link-btn {
    border: 0;
    background: transparent;
    color: #0f766e;
    font-weight: 800;
    cursor: pointer;
}

.otp-channel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.otp-channel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    color: #475569;
    font-weight: 800;
    cursor: pointer;
    background: #fff;
    transition: all 0.18s ease;
}

.otp-channel input {
    position: absolute;
    opacity: 0;
}

.otp-channel.is-active {
    border-color: #0f766e;
    color: #0f766e;
    background: rgba(15, 118, 110, 0.08);
}

.otp-alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-weight: 700;
    line-height: 1.45;
}

.otp-alert-error {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.otp-alert-success {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.otp-auth-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    color: #94a3b8;
}

.otp-auth-links a {
    color: #0f766e;
    font-weight: 800;
    text-decoration: none;
}

.otp-auth-links a:hover {
    text-decoration: underline;
}

@media (max-width: 575px) {
    .otp-auth {
        padding: 28px 12px;
    }

    .otp-auth-card {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .otp-auth h1 {
        font-size: 25px;
    }

    .otp-mode-tabs,
    .otp-channel-grid {
        grid-template-columns: 1fr;
    }

    .otp-auth-links {
        flex-direction: column;
        gap: 7px;
    }

    .otp-auth-links span {
        display: none;
    }
}
