@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700&display=swap');

.guest-auth-page {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #f9f9f9;
    color: #2c2f33;
}

.guest-auth-page * {
    box-sizing: border-box;
}

.modal-skeleton--guest-auth .modal-skeleton__blur {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-skeleton--guest-auth .modal-skeleton__panel {
    width: 480px;
    max-width: calc(100vw - 48px);
    max-height: none;
    padding: 0;
    overflow: visible;
    background-color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-skeleton--guest-auth .modal-skeleton__slot {
    width: 100%;
}

.guest-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 24px;
    gap: 48px;
}

.guest-login__head {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    align-self: stretch;
    padding: 0 0 12px;
    gap: 10px;
    border-bottom: 1px solid #ebebeb;
}

.guest-login__head-title {
    margin: 0;
    flex: 1 1 auto;
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    color: #2c2f33;
}

.guest-login__close {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 32px;
    height: 32px;
    padding: 4px;
    border: none;
    margin: 0;
    border-radius: 50px;
    background: transparent;
    font: inherit;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.guest-login__close-icon {
    display: block;
    width: 24px;
    height: 24px;
}

.guest-login__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    gap: 32px;
}

.guest-login__intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    gap: 8px;
}

.guest-login__heading {
    margin: 0;
    align-self: stretch;
    font-size: 30px;
    font-weight: 700;
    line-height: 36px;
    color: #2c2f33;
}

.guest-login__sub {
    margin: 0;
    align-self: stretch;
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    color: #475569;
}

.guest-login__form {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    gap: 32px;
}

.guest-login__google {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    gap: 12px;
    width: 100%;
    height: 60px;
    padding: 0 48px;
    margin: 0;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 6px -4px #1132131a, 0 5px 15px -3px #1132131a;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    line-height: 22px;
    color: #2c2f33;
    cursor: pointer;
}

.guest-login__google:hover {
    box-shadow: 0 4px 15px -4px #1132131a, 0 5px 25px -3px #11321333;
}

.guest-login__google-icon {
    display: flex;
    flex: none;
    width: 24px;
    height: 24px;
    line-height: 0;
}

.guest-login__google-icon img {
    display: block;
    width: 24px;
    height: 24px;
}

.guest-login__google-label {
    flex: none;
    text-align: center;
}

.guest-login__divider {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    gap: 12px;
}

.guest-login__divider-line {
    flex: 1 1 auto;
    height: 1px;
    background: #ebebeb;
}

.guest-login__divider-text {
    flex: none;
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    color: #9f9f9f;
}

.guest-login__phone-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    gap: 12px;
}

.guest-login__phone-label {
    margin: 0;
    align-self: stretch;
    font-size: 16px;
    font-weight: 500;
    line-height: 19px;
    color: #2c2f33;
}

.guest-login__phone-input {
    width: 100%;
    height: 60px;
    padding: 0 24px;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    background: #fbfbfb;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
    color: #2c2f33;
}

.guest-login__phone-input::placeholder {
    color: #9f9f9f;
}

.guest-login__phone-input:focus {
    outline: 2px solid rgba(46, 125, 50, 0.35);
    outline-offset: 1px;
}

.guest-login__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 100%;
    height: 60px;
    padding: 19px 48px;
    border: none;
    border-radius: 12px;
    background-color: #2e7d32;
    box-shadow: 0 5px 15px -3px rgba(17, 50, 19, 0.2), 0 4px 6px -4px rgba(17, 50, 19, 0.2);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

.guest-login__submit:hover {
    box-shadow: 0 5px 35px -3px rgba(17, 50, 19, 0.2), 0 4px 10px -4px rgba(17, 50, 19, 0.2);
}

.guest-login__legal {
    margin: 0;
    align-self: stretch;
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
    text-align: center;
    color: #9f9f9f;
}

.guest-login__legal-link {
    color: #2e7d32;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.guest-login__trust {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    gap: 24px;
}

.guest-login__trust-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    flex: none;
}

.guest-login__trust-item:first-child {
    width: 248px;
    max-width: 100%;
}

.guest-login__trust-icon {
    display: flex;
    flex: none;
    line-height: 0;
}

.guest-login__trust-icon img {
    display: block;
    width: 24px;
    height: 24px;
}

.guest-login__trust-text {
    flex: none;
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
    color: #9f9f9f;
}

.guest-login__sms-fields {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    gap: 32px;
}

.guest-login__code-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.guest-login__code-digit {
    user-select: text;
    width: 98px;
    height: 60px;
    padding: 0;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    background: #fbfbfb;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
    color: #2c2f33;
    text-align: center;
}

.guest-login__code-digit::placeholder {
    color: #9f9f9f;
}

.guest-login__code-digit:focus {
    outline: 2px solid rgba(46, 125, 50, 0.35);
    outline-offset: 1px;
}

.guest-login__links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
}

.guest-login__link {
    flex: none;
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    color: #475569;
    text-decoration: none;
}

a.guest-login__link:hover {
    color: #2c2f33;
}

.guest-login__confirm {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    gap: 12px;
    width: 100%;
    height: 60px;
    padding: 0 48px;
    border: none;
    border-radius: 12px;
    background-color: #2e7d32;
    box-shadow: 0 5px 15px -3px rgba(17, 50, 19, 0.2), 0 4px 6px -4px rgba(17, 50, 19, 0.2);
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    line-height: 22px;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

.guest-login__confirm:hover {
    box-shadow: 0 5px 35px -3px rgba(17, 50, 19, 0.2), 0 4px 10px -4px rgba(17, 50, 19, 0.2);
}

.guest-login__confirm-label {
    flex: none;
}

.guest-login__confirm-icon {
    display: flex;
    flex: none;
    width: 24px;
    height: 24px;
    line-height: 0;
}

.guest-login__confirm-icon img {
    display: block;
    width: 24px;
    height: 24px;
}

.guest-login__account-nav {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
    margin-bottom: 8px;
}

.guest-login__account-link {
    flex: 1 1 50%;
    padding: 10px 12px;
    border-radius: 10px;
    background-color: #f3f3f3;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: #2c2f33;
}

.guest-login__account-link--active {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.guest-login__error {
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background-color: #fdecea;
    font-size: 13px;
    line-height: 18px;
    color: #c62828;
}

.guest-login__link--btn {
    border: none;
    padding: 0;
    background: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    cursor: pointer;
}

.guest-login__link--btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.guest-login__admin-link-wrap {
    width: 100%;
    margin-top: 8px;
    text-align: center;
}

.guest-login__admin-link {
    font-size: 13px;
    color: #666;
}

@media (max-width: 768px) {
    .modal-skeleton--guest-auth .modal-skeleton__panel {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
        border-radius: 20px;
    }

    .guest-login {
        justify-content: flex-start;
        padding: 20px 16px;
        gap: 24px;
    }

    .guest-login__body {
        gap: 24px;
    }

    .guest-login__form {
        gap: 24px;
    }

    .guest-login__account-nav {
        margin-bottom: 0;
    }

    .guest-login__account-link {
        font-size: 13px;
        line-height: 16px;
        padding: 10px 8px;
        white-space: nowrap;
    }

    .guest-login[data-auth-role='supplier'] .guest-login__heading {
        font-size: 22px;
        line-height: 28px;
    }

    .guest-login[data-auth-role='supplier'] .guest-login__sub {
        font-size: 13px;
        line-height: 16px;
    }

    .guest-login__legal {
        font-size: 14px;
        line-height: 18px;
    }

    .guest-login__heading {
        font-size: 24px;
        line-height: 30px;
    }

    .guest-login__trust {
        flex-direction: column;
        gap: 12px;
    }

    .guest-login__trust-item:first-child {
        width: 100%;
    }

    .guest-login__code-row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .guest-login__code-digit {
        width: 72px;
    }

    .guest-login__links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .modal-skeleton--guest-auth .modal-skeleton__stage {
        align-items: flex-start;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .modal-skeleton--guest-auth .modal-skeleton__panel {
        max-height: calc(100svh - 24px);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .modal-skeleton--guest-auth .modal-skeleton__panel::-webkit-scrollbar {
        display: none;
    }

    .modal-skeleton--guest-auth .guest-login__head {
        background-color: #ffffff;
    }

    .modal-skeleton--supplier-login-wizard.modal-skeleton--supplier-login-auth .modal-skeleton__stage {
        align-items: flex-start;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .modal-skeleton--supplier-login-wizard.modal-skeleton--supplier-login-auth .modal-skeleton__panel {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
        height: auto;
        max-height: calc(100svh - 24px);
        border-radius: 20px;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .modal-skeleton--supplier-login-wizard.modal-skeleton--supplier-login-auth .modal-skeleton__panel::-webkit-scrollbar {
        display: none;
    }

    .supplier-login-modal__screen--auth .guest-login--embedded {
        justify-content: flex-start;
        max-width: none;
        margin: 0;
        padding: 44px 16px 20px 16px;
        gap: 24px;
        flex: none;
        height: auto;
    }

    .supplier-login-modal__screen--auth .guest-login--embedded .guest-login__body {
        gap: 24px;
    }

    .supplier-login-modal__screen--auth .guest-login--embedded .guest-login__form {
        gap: 24px;
    }

    .supplier-login-modal__screen--auth .guest-login--embedded .guest-login__heading {
        font-size: 22px;
        line-height: 28px;
    }

    .supplier-login-modal__screen--auth .guest-login--embedded .guest-login__sub {
        font-size: 13px;
        line-height: 16px;
    }
}

@media (max-width: 480px) {
    .modal-skeleton--guest-auth .modal-skeleton__panel {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        border-radius: 16px;
    }

    .guest-login__google,
    .guest-login__submit,
    .guest-login__confirm {
        height: 52px;
        padding-left: 24px;
        padding-right: 24px;
        font-size: 16px;
    }

    .guest-login__code-digit {
        width: 64px;
        height: 52px;
    }

    .modal-skeleton--guest-auth .modal-skeleton__stage {
        align-items: flex-start;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .modal-skeleton--guest-auth .modal-skeleton__panel {
        max-height: calc(100svh - 16px);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .modal-skeleton--guest-auth .modal-skeleton__panel::-webkit-scrollbar {
        display: none;
    }

    .modal-skeleton--guest-auth .guest-login__head {
        background-color: #ffffff;
    }

    .guest-login__trust-item {
        justify-content: center;
    }

    .guest-login__trust {
        align-items: center;
    }

    .guest-login[data-auth-role='supplier'] .guest-login__heading {
        font-size: 20px;
        line-height: 26px;
    }

    .guest-login__account-link {
        font-size: 12px;
        padding: 10px 6px;
    }

    .modal-skeleton--supplier-login-wizard.modal-skeleton--supplier-login-auth .modal-skeleton__stage {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .modal-skeleton--supplier-login-wizard.modal-skeleton--supplier-login-auth .modal-skeleton__panel {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        max-height: calc(100svh - 16px);
        border-radius: 16px;
    }

    .supplier-login-modal__screen--auth .guest-login--embedded {
        padding: 40px 12px 16px 12px;
    }

    .supplier-login-modal__screen--auth .guest-login--embedded .guest-login__heading {
        font-size: 20px;
        line-height: 26px;
    }
}
