/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family:
        Arial,
        "Helvetica Neue",
        sans-serif;

    background: #f4f5f6;
    color: #252525;

    direction: rtl;

    overflow-x: hidden;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
}

input {
    outline: none;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --accent: #d71920;
    --accent-dark: #bd1118;
    --accent-light: #fff1f2;

    --text: #252525;
    --text-secondary: #666b70;
    --text-muted: #91969b;

    --border: #dedfe1;
    --border-light: #eceeef;

    --background: #f4f5f6;
    --white: #ffffff;

    --success: #198754;
    --success-light: #eef8f2;

    --error: #d71920;
    --error-light: #fff1f1;
}


/* =========================================================
   PAGE
========================================================= */

.page {
    position: relative;

    min-height: 100vh;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7f7f8 42%,
            #f0f1f2 100%
        );

    overflow: hidden;
}


/* =========================================================
   BACKGROUND WAVES
========================================================= */

.background-waves {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    height: 330px;

    z-index: 0;

    pointer-events: none;

    overflow: hidden;
}

.wave {
    position: absolute;

    left: -10%;

    width: 120%;

    height: 330px;

    border-radius: 50% 50% 0 0;
}

.wave-1 {
    bottom: -275px;

    background: rgba(215, 25, 32, 0.035);

    transform: rotate(-2deg);
}

.wave-2 {
    bottom: -292px;

    background: rgba(215, 25, 32, 0.025);

    transform: rotate(2deg);
}

.wave-3 {
    bottom: -310px;

    background: rgba(0, 0, 0, 0.018);

    transform: rotate(-1deg);
}

.wave-4 {
    bottom: -325px;

    background: rgba(215, 25, 32, 0.015);

    transform: rotate(1deg);
}


/* =========================================================
   MAIN
========================================================= */

.verification-page {
    position: relative;

    z-index: 5;

    width: 100%;

    max-width: 720px;

    min-height: 100vh;

    margin: 0 auto;

    padding:
        42px 24px 70px;

    display: flex;

    flex-direction: column;

    align-items: center;
}


/* =========================================================
   LOGO
========================================================= */

.logo-wrapper {
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 34px;
}

.leumi-logo {
    width: 100%;

    height: 74px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #ffffff;

    border: 1px solid var(--border-light);

    border-radius: 5px;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.045);
}

.leumi-logo img {
    display: block;

    width: auto;


    max-width: 190px;

    object-fit: contain;
}


/* =========================================================
   INTRO
========================================================= */

.intro {
    width: 100%;

    text-align: center;

    margin-bottom: 28px;
}

.intro h1 {
    color: var(--text);

    font-size: 30px;

    line-height: 1.35;

    font-weight: 700;

    letter-spacing: -0.25px;

    margin-bottom: 10px;
}

.intro p {
    color: var(--text-secondary);

    font-size: 15px;

    line-height: 1.7;

    font-weight: 400;
}


/* =========================================================
   ID CARD
========================================================= */

.id-card {
    position: relative;

    width: 100%;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 5px;

    padding: 25px 28px 27px;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.055);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* =========================================================
   ID LABEL
========================================================= */

.id-card__label {
    color: #3b3f42;

    font-size: 14px;

    line-height: 1.4;

    font-weight: 700;

    margin-bottom: 10px;
}


/* =========================================================
   ID INPUT
========================================================= */

.id-card__number {
    width: 100%;
}

.id-card__number input {
    width: 100%;

    height: 54px;

    display: block;

    padding:
        0 18px;

    color: #252525;

    background: #fafafa;

    border: 1px solid #cfd2d5;

    border-radius: 3px;

    text-align: right;

    font-size: 17px;

    font-weight: 500;

    letter-spacing: 1px;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.id-card__number input::placeholder {
    color: #a3a7ab;

    letter-spacing: 0;
}

.id-card__number input:focus {
    background: #ffffff;

    border-color: #8e9398;

    box-shadow:
        0 0 0 3px rgba(0, 0, 0, 0.045);
}


/* =========================================================
   INPUT TYPING
========================================================= */

.id-card.input-typing {
    border-color: #bfc3c7;
}

.id-card.input-typing
.id-card__number input {
    border-color: #aeb3b7;
}


/* =========================================================
   INPUT SUCCESS
========================================================= */

.id-card.input-success {
    border-color: rgba(25, 135, 84, 0.45);

    box-shadow:
        0 5px 20px rgba(25, 135, 84, 0.08);
}

.id-card.input-success
.id-card__number input {
    color: #176b46;

    background: var(--success-light);

    border-color: rgba(25, 135, 84, 0.45);
}


/* =========================================================
   INPUT ERROR
========================================================= */

.id-card.input-error {
    border-color: rgba(215, 25, 32, 0.45);

    box-shadow:
        0 5px 20px rgba(215, 25, 32, 0.07);
}

.id-card.input-error
.id-card__number input {
    background: var(--error-light);

    border-color: var(--error);
}


/* =========================================================
   VERIFICATION STATUS
========================================================= */

.verification-status {
    position: relative;

    width: 112px;

    height: 112px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-top: 34px;

    border-radius: 50%;

    background: #ffffff;

    border: 1px solid var(--border-light);

    box-shadow:
        0 7px 24px rgba(0, 0, 0, 0.06);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.status-circle {
    width: 82px;

    height: 82px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #f3f4f5;
}

.status-circle__inner {
    position: relative;

    width: 60px;

    height: 60px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;
}


/* =========================================================
   STATUS ICONS
========================================================= */

.status-icon {
    position: absolute;

    inset: 0;

    display: none;

    align-items: center;

    justify-content: center;
}


/* =========================================================
   WAITING
========================================================= */

.verification-status--waiting
.status-icon--waiting {
    display: flex;
}

.status-icon--waiting span {
    width: 12px;

    height: 12px;

    display: block;

    background: #9a9fa4;

    border-radius: 50%;
}


/* =========================================================
   CHECKING
========================================================= */

.verification-status--checking {
    border-color: #cfd2d5;
}

.verification-status--checking
.status-icon--checking {
    display: flex;
}

.checking-spinner {
    width: 36px;

    height: 36px;

    display: block;

    border:
        3px solid #e1e3e5;

    border-top-color: var(--accent);

    border-radius: 50%;

    animation:
        verificationSpin 0.8s linear infinite;
}

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


/* =========================================================
   SUCCESS
========================================================= */

.verification-status--success {
    border-color:
        rgba(25, 135, 84, 0.30);

    box-shadow:
        0 7px 24px rgba(25, 135, 84, 0.09);
}

.verification-status--success
.status-circle {
    background: var(--success-light);
}

.verification-status--success
.status-icon--success {
    display: flex;
}

.verification-status--success
.status-circle__inner {
    color: var(--success);
}

.checkmark {
    position: relative;

    width: 29px;

    height: 17px;

    display: block;

    border-left:
        3px solid currentColor;

    border-bottom:
        3px solid currentColor;

    transform:
        rotate(-45deg)
        translate(2px, -2px);
}


/* =========================================================
   ERROR
========================================================= */

.verification-status--error {
    border-color:
        rgba(215, 25, 32, 0.30);

    box-shadow:
        0 7px 24px rgba(215, 25, 32, 0.08);
}

.verification-status--error
.status-circle {
    background: var(--error-light);
}

.verification-status--error
.status-icon--error {
    display: flex;
}

.verification-status--error
.status-circle__inner {
    color: var(--error);
}

.error-line {
    position: absolute;

    width: 31px;

    height: 3px;

    background: currentColor;

    border-radius: 3px;
}

.error-line--1 {
    transform: rotate(45deg);
}

.error-line--2 {
    transform: rotate(-45deg);
}


/* =========================================================
   STATUS TEXT
========================================================= */

.status-text {
    width: 100%;

    min-height: 100px;

    margin-top: 22px;

    text-align: center;
}

.status-message {
    display: none;

    animation:
        statusFade 0.25s ease;
}

@keyframes statusFade {
    from {
        opacity: 0;

        transform:
            translateY(4px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* =========================================================
   WAITING MESSAGE
========================================================= */

.verification-status--waiting
~ .status-text
.status-message--waiting {
    display: block;
}


/* =========================================================
   CHECKING MESSAGE
========================================================= */

.verification-status--checking
~ .status-text
.status-message--checking {
    display: block;
}


/* =========================================================
   SUCCESS MESSAGE
========================================================= */

.verification-status--success
~ .status-text
.status-message--success {
    display: block;
}


/* =========================================================
   ERROR MESSAGE
========================================================= */

.verification-status--error
~ .status-text
.status-message--error {
    display: block;
}


/* =========================================================
   STATUS HEADINGS
========================================================= */

.status-message h2 {
    color: var(--text);

    font-size: 19px;

    line-height: 1.45;

    font-weight: 700;

    margin-bottom: 8px;
}

.status-message p {
    color: var(--text-secondary);

    font-size: 14px;

    line-height: 1.75;
}


/* =========================================================
   SUCCESS TEXT
========================================================= */

.verification-status--success
~ .status-text
.status-message--success h2 {
    color: var(--success);
}


/* =========================================================
   ERROR TEXT
========================================================= */

.verification-status--error
~ .status-text
.status-message--error h2 {
    color: var(--error);
}


/* =========================================================
   FEATURES
========================================================= */

.features {
    width: 100%;

    display: flex;

    align-items: stretch;

    justify-content: center;

    margin-top: 25px;

    padding:
        22px 10px;

    background: #ffffff;

    border: 1px solid var(--border);

    border-radius: 5px;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.04);
}


/* =========================================================
   FEATURE
========================================================= */

.feature {
    flex: 1;

    min-width: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 11px;

    padding:
        3px 18px;
}

.feature__icon {
    flex: 0 0 42px;

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--accent);

    background: var(--accent-light);

    border-radius: 50%;
}

.feature__icon svg {
    width: 27px;

    height: 27px;
}

.feature__icon--digital svg {
    width: 31px;

    height: 22px;
}

.feature__text {
    color: #44484c;

    font-size: 12px;

    line-height: 1.55;

    font-weight: 600;

    text-align: right;
}


/* =========================================================
   FEATURE DIVIDER
========================================================= */

.feature-divider {
    width: 1px;

    min-height: 45px;

    background: var(--border);
}


/* =========================================================
   CONTINUE BUTTON
========================================================= */

.button-wrapper {
    width: 100%;

    display: flex;

    justify-content: center;

    margin-top: 28px;
}

.continue-button {
    min-width: 210px;

    height: 50px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

    padding:
        0 25px;

    color: #ffffff;

    background: var(--accent);

    border-radius: 3px;

    cursor: pointer;

    font-size: 15px;

    font-weight: 700;

    box-shadow:
        0 5px 14px rgba(215, 25, 32, 0.18);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.continue-button:hover {
    background: var(--accent-dark);

    transform:
        translateY(-1px);

    box-shadow:
        0 7px 18px rgba(215, 25, 32, 0.23);
}

.continue-button:active {
    transform:
        translateY(0);
}

.continue-button__text {
    white-space: nowrap;
}

.continue-button__arrow {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 22px;

    height: 22px;

    font-size: 25px;

    line-height: 1;

    transform:
        rotate(180deg);
}


/* =========================================================
   DESKTOP SIZING
========================================================= */

@media (min-width: 901px) {

    .verification-page {
        padding-top: 55px;
    }

    .logo-wrapper {
        margin-bottom: 38px;
    }

    .intro h1 {
        font-size: 32px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 700px) {

    .verification-page {
        padding:
            30px 18px 55px;
    }

    .logo-wrapper {
        margin-bottom: 27px;
    }

    .leumi-logo {
        height: 66px;
    }


    .intro h1 {
        font-size: 26px;
    }

    .intro p {
        font-size: 14px;
    }

    .id-card {
        padding:
            22px 20px 23px;
    }

    .features {
        padding:
            18px 5px;
    }

    .feature {
        gap: 8px;

        padding:
            3px 10px;
    }

    .feature__icon {
        flex-basis: 37px;

        width: 37px;

        height: 37px;
    }

    .feature__icon svg {
        width: 23px;

        height: 23px;
    }

    .feature__text {
        font-size: 11px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 520px) {

    .verification-page {
        padding:
            22px 14px 45px;
    }

    .logo-wrapper {
        margin-bottom: 23px;
    }

    .leumi-logo {
        height: 60px;
    }

    .intro {
        margin-bottom: 21px;
    }

    .intro h1 {
        font-size: 23px;

        line-height: 1.4;
    }

    .intro p {
        font-size: 13px;

        line-height: 1.65;
    }

    .id-card {
        padding:
            19px 16px 20px;
    }

    .id-card__label {
        font-size: 13px;
    }

    .id-card__number input {
        height: 50px;

        font-size: 16px;

        padding:
            0 15px;
    }

    .verification-status {
        width: 96px;

        height: 96px;

        margin-top: 28px;
    }

    .status-circle {
        width: 70px;

        height: 70px;
    }

    .status-circle__inner {
        width: 52px;

        height: 52px;
    }

    .status-text {
        margin-top: 18px;

        min-height: 92px;
    }

    .status-message h2 {
        font-size: 17px;
    }

    .status-message p {
        font-size: 13px;

        line-height: 1.7;
    }

    .features {
        flex-direction: column;

        gap: 0;

        padding:
            8px 15px;
    }

    .feature {
        width: 100%;

        flex: none;

        justify-content: flex-start;

        padding:
            12px 3px;
    }

    .feature-divider {
        width: 100%;

        height: 1px;

        min-height: 1px;
    }

    .feature__icon {
        flex-basis: 40px;

        width: 40px;

        height: 40px;
    }

    .feature__text {
        font-size: 12px;
    }

    .button-wrapper {
        margin-top: 22px;
    }

    .continue-button {
        width: 100%;

        min-width: 0;

        max-width: 340px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

    .verification-page {
        padding:
            18px 11px 38px;
    }

    .intro h1 {
        font-size: 21px;
    }

    .intro p {
        font-size: 12px;
    }

    .id-card {
        padding:
            17px 13px 18px;
    }

    .verification-status {
        width: 88px;

        height: 88px;
    }

    .status-circle {
        width: 64px;

        height: 64px;
    }

    .status-circle__inner {
        width: 48px;

        height: 48px;
    }

    .status-message h2 {
        font-size: 16px;
    }

    .status-message p {
        font-size: 12px;
    }

}