/* ===== RESET ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    background: #f3f4f6;
    color: #111827;
}

/* ===== BACKGROUND ===== */
.wrap {
    min-height: 100vh;
    background-image: url("../img/bg-white.avif");
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    display: flex;
    flex-direction: column;
}

.center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== CARD ===== */
.center {
    width: 100%;
    display: flex;
    justify-content: center;
}

.container__box {
    width: 360px;
    background: #ffffff;
    border-radius: 14px;
    padding: 22px 20px 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    text-align: center;
}

/* ===== STEPS ===== */
.steps {
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 14px;
    text-align: center;
    color: #040404;
}

/* texts */
.steps [data-trans="step-1"],
.steps [data-trans="step-2"] {
    display: none;
}

/* default: phone page */
.steps:not(.pin-page) [data-trans="step-1"] {
    display: block;
}

/* pin page */
.steps.pin-page [data-trans="step-2"] {
    display: block;
}

/* bars */
.step1,
.step2 {
    float: left;
    width: calc(50% - 6px);
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
    margin-left: 6px;
}

/* progress */
.step1::after,
.step2::after {
    content: '';
    display: block;
    height: 100%;
    width: 10%;
    background: #2563eb;
    transition: width .4s ease;
}

/* phone step */
.steps:not(.pin-page) .step1::after {
    width: 100%;
}

.steps:not(.pin-page) .step2::after {
    width: 0%;
}

/* pin step */
.steps.pin-page .step1::after {
    width: 100%;
}

.steps.pin-page .step2::after {
    width: 100%;
}

/* clearfix */
.steps::after {
    content: '';
    display: table;
    clear: both;
}

/* ===== TITLES ===== */
.label h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #111827;
}

/* ===== INPUT ===== */
.field {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
}

#svg_phone {
    width: 28px;
    margin-right: 8px;
}

#countrycode {
    width: 46px;
    background: transparent;
    border: none;
    color: #111827;
    font-size: 14px;
    margin-right: 6px;
}

.field-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #111827;
    font-size: 16px;
    outline: none;
}

.field-input::placeholder {
    color: #9ca3af;
}

.mobile {
    position: absolute;
    bottom: -18px;
    left: 12px;
    font-size: 11px;
    color: #6b7280;
}

/* ===== CHECK ICON ===== */
#check_phone {
    width: 20px;
    height: 20px;
}

#check_phone svg path {
    fill: #93c5fd;
    opacity: 0.6;
    transition: fill .2s ease, opacity .2s ease;
}

#check_phone svg path[style*="rgb(0, 105, 148)"] {
    fill: #22c55e !important;
    opacity: 1;
}

 

/* ===== BUTTON ===== */
.btn {
    width: 100%;
    margin-top: 18px;
    height: 48px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background: #006994;
    cursor: pointer;
    text-transform: uppercase;
}

.btn:active {
    transform: scale(.98);
}

/* ===== FOOTER ===== */
.footer {
    padding: 12px 16px; 
    z-index: 10;
}

.footer__text {
    max-width: 900px;
    margin: 0 auto;
    font-size: 10px;
    line-height: 1.4;
    color: #6b7280;
    text-align: center;
}
 

/* ===== PIN ===== */
#field-pin {
    justify-content: center;
}

#pin {
    letter-spacing: 6px;
    font-size: 20px;
}

/* ===== LOADER ===== */
.loader {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.85);
    display: none;
    align-items: center;
    justify-content: center;
}

.loader__inner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #d1d5db;
    border-top-color: #006994;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== MESSAGE ===== */
.messageBox {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.85);
    display: none;
    align-items: center;
    justify-content: center;
}

.message__content {
    width: 320px;
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,.18);
}

.message__title {
    font-size: 14px;
    margin-bottom: 16px;
    color: #111827;
}

.message__close {
    display: inline-block;
    padding: 10px 16px;
    background: #006994;
    border-radius: 10px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
}
.attention {
    font-size: 12px;
    color: #dc2626;
    opacity: 0;
    transition: opacity .25s ease;
}

.attention.attention--show {
    opacity: 1;
}