﻿.otp-page {
    min-height: calc(100vh - 130px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: radial-gradient( circle at top right, rgba(0, 82, 212, 0.09), transparent 35% ), #f7f9fc;
}

.otp-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    padding: 42px 38px 36px;
    border: 1px solid rgba(15, 65, 105, 0.09);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(20, 61, 96, 0.12);
    text-align: center;
}

.otp-back-button {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 82, 212, 0.12);
    border-radius: 50%;
    color: #28475f;
    background: #f7faff;
    text-decoration: none;
    transition: 0.2s ease;
}

    .otp-back-button:hover {
        color: #ffffff;
        background: #0052d4;
        transform: translateX(3px);
    }

.otp-icon {
    width: 82px;
    height: 82px;
    margin: 4px auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient( 135deg, #0052d4, #4364f7 );
    box-shadow: 0 14px 32px rgba(0, 82, 212, 0.24);
    font-size: 38px;
}

.otp-title {
    margin: 0 0 12px;
    color: #18364d;
    font-size: 27px;
    font-weight: 800;
}

.otp-description {
    max-width: 350px;
    margin: 0 auto 10px;
    color: #728596;
    font-size: 14px;
    line-height: 1.9;
}

.otp-mobile {
    display: inline-flex;
    margin-bottom: 28px;
    padding: 7px 15px;
    border-radius: 20px;
    color: #0052d4;
    background: rgba(0, 82, 212, 0.07);
    font-size: 15px;
    font-weight: 800;
    direction: ltr;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 12px;
}

.otp-digit {
    width: 58px;
    height: 64px;
    border: 1.5px solid #dce5ed;
    border-radius: 15px;
    outline: none;
    color: #17364e;
    background: #fbfdff;
    text-align: center;
    font-size: 25px;
    font-weight: 800;
    caret-color: #0052d4;
    transition: 0.2s ease;
}

    .otp-digit:focus {
        border-color: #0052d4;
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(0, 82, 212, 0.09);
        transform: translateY(-2px);
    }

    .otp-digit.otp-invalid {
        border-color: #dc3545;
        background: #fff7f8;
        animation: otpShake 0.32s ease;
    }

.otp-field-error,
.otp-validation-summary {
    display: block;
    margin: 8px 0 14px;
    color: #c52c3d;
    font-size: 13px;
    font-weight: 600;
}

    .otp-validation-summary ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

.otp-submit-button {
    width: 100%;
    min-height: 54px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: none;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient( 135deg, #0052d4, #4364f7 );
    box-shadow: 0 12px 28px rgba(0, 82, 212, 0.22);
    font-size: 15px;
    font-weight: 800;
    transition: 0.2s ease;
}

    .otp-submit-button:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 16px 34px rgba(0, 82, 212, 0.28);
    }

    .otp-submit-button:disabled {
        opacity: 0.72;
        cursor: wait;
    }

.otp-resend-section {
    margin-top: 24px;
    color: #7c8d9c;
    font-size: 13px;
}

.otp-resend-button {
    border: none;
    color: #0052d4;
    background: transparent;
    font-weight: 800;
}

    .otp-resend-button:disabled {
        color: #94a3af;
        cursor: not-allowed;
    }

@keyframes otpShake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

@media (max-width: 576px) {

    .otp-card {
        padding: 38px 20px 30px;
        border-radius: 20px;
    }

    .otp-inputs {
        gap: 7px;
    }

    .otp-digit {
        width: 48px;
        height: 58px;
        border-radius: 13px;
        font-size: 22px;
    }

    .otp-title {
        font-size: 23px;
    }
}
