.demo-wrap {
    text-align: center;
    max-width: 440px;
}

.demo-icon {
    width: 84px;
    height: 84px;
    background: #1a1a1a;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: #fff;
    margin-bottom: 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.demo-title {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 12px;
}

.demo-desc {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.demo-btn {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 16px 48px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.demo-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
}

#modalLoginPhone.modal-container,
#modalLoginOtp.modal-container {
    width: 92vw;
    max-width: 420px;
    padding: 0;
}

.modal-login-wrapper .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .15);
    background: #fff;
    max-height: 80dvh;
    overflow-y: auto;
    animation: modalLoginPop .35s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes modalLoginPop {
    from {
        opacity: 0;
        transform: scale(.92) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-login-header {
    padding: 32px 28px 0;
    border: none;
    position: relative;
    display: block;
}

.modal-login-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #f5f5f5;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    color: #666;
    transition: all .2s;
    opacity: 1;
    padding: 0;
    z-index: 2;
}

.modal-login-close:hover {
    background: #ebebeb;
    color: #1a1a1a;
}

.modal-login-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
}

.modal-login-subtitle {
    font-size: 14px;
    color: #8a8a8a;
    margin-top: 10px;
    line-height: 1.7;
    margin-bottom: 0;
}

.modal-login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.modal-login-logo img {
    max-width: 160px;
    width: 100%;
    height: auto;
    display: block;
}

.modal-login-body {
    padding: 24px 28px;
}

.modal-login-field {
    margin-top: 22px;
    margin-bottom: 20px;
}

.modal-login-label {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.modal-login-input-box {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .2s;
    background: #fff;
}

.modal-login-input-box:focus-within {
    border-color: #1a1a1a;
}

.modal-login-input-box.error {
    border-color: #dc2626;
}

.modal-login-input-icon {
    padding: 0 16px;
    display: flex;
    align-items: center;
    color: #999;
    font-size: 18px;
    background: #f7f7f7;
    border-left: 1.5px solid #e5e5e5;
}

.modal-login-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 16px;
    height: 52px;
    font-size: 15px;
    background: transparent;
    font-family: inherit;
    color: #1a1a1a;
    width: 100%;
    letter-spacing: .5px;
}

.modal-login-input::placeholder {
    color: #b8b8b8;
    letter-spacing: 0;
}

.modal-login-error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 8px;
    display: none;
    align-items: center;
    gap: 4px;
}

.modal-login-error.show {
    display: flex;
}

.modal-login-btn {
    height: 52px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
}

.modal-login-btn-block {
    width: 100%;
}

.modal-login-btn-dark {
    background: #1a1a1a;
    color: #fff;
}

.modal-login-btn-dark:hover:not(:disabled) {
    background: #000;
}

.modal-login-btn-dark:disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

.modal-login-btn-light {
    background: #f5f5f5;
    color: #1a1a1a;
}

.modal-login-btn-light:hover {
    background: #ebebeb;
}

.modal-login-btn-success {
    background: #16a34a;
    color: #fff;
}

.modal-login-footer {
    padding: 0 28px 28px;
    text-align: center;
}

.modal-login-footer-text {
    font-size: 12.4px;
    color: #999;
    line-height: 1.8;
    margin: 0;
    text-align: center!important;
}

.modal-login-footer-text a {
    color: #f97a01;
    font-weight: 700;
    text-decoration: none !important;
    font-size: 14px;
}

.modal-login-phone-show {
    text-align: center;
    margin: 16px 0 0;
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 700;
    direction: ltr;
    letter-spacing: 1px;
}

.modal-login-otp-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 28px 0;
    direction: ltr;
}

.modal-login-otp-box {
    width: 60px;
    height: 68px;
    border: 1.5px solid #f97a01;
    border-radius: 14px;
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    color: #1a1a1a;
    background: #fff;
    outline: none;
    transition: all .2s;
    font-family: inherit;
}

.modal-login-btn-row {
    display: flex;
    gap: 10px;
}

.modal-login-btn-row .modal-login-btn {
    flex: 1;
}

.modal-login-resend {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #8a8a8a;
}

.modal-login-resend-link {
    color: #f97a00;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
}

.modal-login-resend-link:hover {
    text-decoration: underline;
}

.modal-login-help-links {
    display: flex;
    flex-direction: row;
    gap: 18px;
    justify-content: center;
    align-items: center;
    margin-top: 18px;
}

.modal-login-help-link {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-login-help-link:hover {
    text-decoration: underline;
    color: #f97a01;
}

.modal-login-timer {
    color: #1a1a1a;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    direction: ltr;
    display: inline-block;
}

.modal-login-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: modalLoginSpin .6s linear infinite;
}

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

@media (max-width: 480px) {
    #modalLoginPhone.modal-container,
    #modalLoginOtp.modal-container {
        width: 94vw;
        max-width: none;
    }

    .modal-login-header {
        padding: 24px 20px 0;
    }

    .modal-login-body {
        padding: 20px;
    }

    .modal-login-footer {
        padding: 0 20px 24px;
    }

    .modal-login-otp-box {
        width: 54px;
        height: 62px;
        font-size: 24px;
    }

    .modal-login-otp-row {
        gap: 8px;
    }
}

.icon-img {
    width: 1em;
    height: 1em;
    margin-left: 0.5em;
    vertical-align: middle;
    filter: invert(53%) sepia(0%) saturate(0%) hue-rotate(159deg) brightness(94%) contrast(85%);
}
.icon-img-cell{
    margin-left: 0em !important;
}
.modal-login-btn-success .icon-img[src*="arrow-left-icon"] {
    display: none;
}

.modal-login-btn-success .icon-img[src*="check-icon"] {
    display: inline-block;
}

#modalLoginPhoneBtn .icon-img {
    margin-left: 0.5em;
}

#correctionLinkArea .modal-login-help-link .icon-img {
    margin-left: 0.5em;
}

#modalLoginResendBtn .icon-img {
    margin-left: 0.5em;
}

.modal-login-header .modal-login-close .icon-img {
    margin-left: 0;
    vertical-align: middle;
    width: 2rem;
    height: 2rem;
}
.orange-link {
    color: #f97a01;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
}
.text-center-login {
    margin-top: 15px;
}

.modal-container {
    position: fixed;
    left: 50%;
    top: 50%;
    max-width: 80vw;
    max-height: 80dvh;
    background-color: white;
    transform: translate(-50%, -50%);
    border-radius: min(1rem, 1vw);

    display: none;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0;
    z-index: -1;
}

.modal-container.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
    z-index: 999999;
}
.modal-under-layer {
    background-color: rgba(0, 0, 0, 0.305);
    backdrop-filter: blur(2px);
    left: 0;
    top: 0;
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 99999;

    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
}
.modal-under-layer.active {
    opacity: 1;
    pointer-events: auto;
    transition: 0.2s;
}
body:has(.modal-container.active) {
    overflow: hidden;
}
