/* Customer OTP auth pages — standalone so CoreUI/theme CSS cannot break the card */

.auth-layout {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(103, 67, 131, 0.08), transparent 55%),
        linear-gradient(180deg, #f7f7f8 0%, #efeff1 100%);
    color: #1a1a1e;
}

.auth-layout__shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 1.5rem 1rem;
    box-sizing: border-box;
}

.auth-layout__panel {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
}

.auth-otp-card {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e8e8ea;
    border-radius: 16px;
    padding: 2rem 1.5rem 1.25rem;
    box-shadow: 0 8px 32px rgba(15, 15, 20, 0.06);
}

.auth-otp-card__brand {
    display: block;
    text-align: center;
    margin: 0 0 1.5rem;
}

.auth-otp-card__logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    text-decoration: none;
    color: #674383;
}

.auth-otp-card__logo {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 280px !important;
    max-height: 100px !important;
    object-fit: contain;
}

.auth-otp-card__logo-text {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #674383;
    line-height: 1.1;
}

.auth-otp-card__tagline {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: #6b6b73;
}

.auth-otp-card__body {
    display: block;
    width: 100%;
}

.auth-otp-card__title {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1e;
    line-height: 1.4;
    text-align: start;
}

.auth-otp-card__hint {
    margin: 0 0 1.25rem;
    font-size: 0.875rem;
    color: #8a8a91;
    line-height: 1.6;
    text-align: start;
}

.auth-otp-form {
    display: block;
    width: 100%;
}

.auth-otp-card__input,
.auth-otp-form .form-control {
    display: block;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    margin: 0;
    border: 1px solid #dcdce0;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    background: #fff;
}

.auth-otp-card__input:focus,
.auth-otp-form .form-control:focus {
    border-color: #674383;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(103, 67, 131, 0.15);
}

.auth-otp-card__input--otp {
    text-align: center !important;
    letter-spacing: 0.35em;
    font-size: 1.15rem;
    font-weight: 600;
    direction: ltr;
}

.auth-otp-card__submit,
.auth-otp-form .btn.auth-otp-card__submit {
    display: block !important;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    margin: 0;
    border: 0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff !important;
    background-color: #674383 !important;
    text-align: center;
    cursor: pointer;
}

.auth-otp-card__submit:hover,
.auth-otp-card__submit:focus {
    background-color: #55356c !important;
    color: #fff !important;
}

.auth-layout .btn-primary {
    background-color: #674383 !important;
    border-color: #674383 !important;
    color: #fff !important;
}

.auth-layout .btn-primary:hover,
.auth-layout .btn-primary:focus,
.auth-layout .btn-primary:active {
    background-color: #55356c !important;
    border-color: #55356c !important;
    color: #fff !important;
}

.auth-otp-card__phone-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.auth-otp-card__change-link,
.auth-otp-card__resend {
    font-size: 0.85rem;
    padding: 0;
    border: 0;
    background: none;
    text-decoration: none;
    color: #674383 !important;
    cursor: pointer;
}

.auth-otp-card__switch {
    margin: 1.25rem 0 0;
    font-size: 0.85rem;
    color: #8a8a91;
    text-align: center;
}

.auth-otp-card__switch a {
    font-weight: 600;
    text-decoration: none;
    color: #674383;
}

.auth-otp-card__legal {
    margin: 1.5rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f2;
    font-size: 0.75rem;
    color: #9a9aa1;
    text-align: center;
    line-height: 1.7;
}

.auth-otp-card__legal-link {
    color: #5b8def;
    text-decoration: none;
    font-weight: 500;
}

.auth-otp-card__legal-link:hover {
    text-decoration: underline;
}

.auth-otp-card .form-check {
    margin-bottom: 1rem;
}

.auth-otp-card .invalid-feedback,
.auth-otp-card .text-danger {
    text-align: start;
}

@media (max-width: 575.98px) {
    .auth-layout__shell {
        align-items: flex-start;
        padding: 1rem 0.75rem;
    }

    .auth-otp-card {
        border-radius: 14px;
        padding: 1.5rem 1.1rem 1.1rem;
    }

    .auth-otp-card__logo {
        max-width: 240px !important;
        max-height: 88px !important;
    }

    .auth-otp-card__logo-text {
        font-size: 2.35rem;
    }
}
