#panel-login-form .login {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

#panel-login-form .login > .legacy-result {
    flex: 0 0 100%;
}

#panel-login-form .auth-phone-row {
    flex: 0 0 100%;
    min-width: 0;
    margin: 0;
}

#panel-login-form .auth-phone-row > .col-8 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
}

#panel-login-form .auth-phone-row .form-group,
#panel-login-form .auth-pin-row .form-group {
    margin-bottom: 0;
}

#panel-login-form input[name="phone"],
#login-form input[name="phone"],
#login-form input[name="pin"] {
    min-width: 0;
    width: 100%;
    height: 56px;
    border: 1px solid #eee5de;
    border-radius: 16px;
    padding: 12px 14px 12px 52px;
    background-color: #fffdfa;
    background-position: 17px center;
    background-size: 22px 22px;
    background-repeat: no-repeat;
    box-shadow: 0 3px 12px rgb(98 58 29 / 4%);
    color: #414141;
    font-size: 16px;
    text-align: left !important;
}

#panel-login-form input[name="phone"],
#login-form input[name="phone"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff802c' stroke-width='1.8'%3E%3Crect x='6' y='2' width='12' height='20' rx='2'/%3E%3Cpath d='M11 18h2' stroke-linecap='round'/%3E%3C/svg%3E");
}

#panel-login-form .auth-pin-row {
    display: flex;
    flex: 0 0 100%;
    flex-wrap: wrap;
    gap: 12px;
    min-width: 0;
    margin: 0;
}

#panel-login-form .auth-pin-row > .col-4:first-child {
    flex: 0 0 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0;
}

#panel-login-form .auth-pin-row > .col-4:last-child {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    padding: 0 4px;
    text-align: right;
}

#panel-login-form input[name="pin"],
#login-form input[name="pin"] {
    width: 100%;
    min-width: 0;
    height: 56px;
    padding: 12px 8px 12px 52px;
    border: 1px solid #e8dfd7;
    border-radius: 16px;
    background-color: #fffdfa !important;
    box-shadow: 0 3px 12px rgb(98 58 29 / 4%);
    color: #414141;
    font-size: 16px;
    text-align: left !important;
}

#panel-login-form input[name="pin"],
#login-form input[name="pin"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff802c' stroke-width='1.8'%3E%3Crect x='4' y='10' width='16' height='12' rx='2'/%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3'/%3E%3C/svg%3E");
    background-position: 17px center;
    background-size: 22px 22px;
    background-repeat: no-repeat;
}

#panel-login-form .forgot-link {
    color: #e96c24;
    font-size: 14px !important;
    font-weight: 600;
    text-decoration: none;
}

#panel-login-form .login .form-group:has(input) {
    position: relative;
}

#panel-login-form .login .form-group:has(input)::before {
    content: '';
    position: absolute;
    z-index: 1;
    top: 17px;
    left: 16px;
    width: 22px;
    height: 22px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

#panel-login-form .login .form-group:has(input[name="phone"])::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff802c' stroke-width='1.8'%3E%3Crect x='6' y='2' width='12' height='20' rx='2'/%3E%3Cpath d='M11 18h2' stroke-linecap='round'/%3E%3C/svg%3E");
}

#panel-login-form .login .form-group:has(input[name="pin"])::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff802c' stroke-width='1.8'%3E%3Crect x='4' y='10' width='16' height='12' rx='2'/%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3'/%3E%3C/svg%3E");
}

#panel-login-form .login input[name="phone"],
#panel-login-form .login input[name="pin"] {
    background-image: none;
}

body:has(> main.frontend-content:not(.page)) > .panel-new #panel-login-form .login input[name="phone"] {
    caret-color: transparent;
}

#panel-login-form .login input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fffdfa inset;
    -webkit-text-fill-color: #414141;
}

#panel-login-form > hr {
    display: none;
}

#panel-login-form .auth {
    margin-top: 28px;
}

#panel-login-form .auth a {
    color: #333;
    font-weight: 600;
    text-decoration: none;
}

#panel-login-form .auth a i {
    color: #ff802c;
}

#panel-login-form .auth button,
#login-form > button[type="submit"] {
    min-height: 52px;
    padding: 12px 24px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(110deg, #ff9818, #ff5c25);
    box-shadow: 0 6px 16px rgb(255 111 34 / 16%);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}

#panel-login-form input:focus,
#login-form input:focus {
    outline: 2px solid #ff9b5b;
    outline-offset: 2px;
    box-shadow: none;
}

.login-screen {
    width: 100%;
    max-width: 425px;
    padding-right: 0;
    padding-left: 0;
}

.login-screen > .card {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.login-screen > .card > .card-header {
    display: flex;
    align-items: center;
    min-height: 55px;
    padding: 10px 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
}

.login-screen .card-header h4 {
    font-size: 20px;
    line-height: 1.3;
}

.login-screen > .card > .card-body {
    margin-top: 0;
    padding: 22px 20px;
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 20px rgb(72 43 24 / 9%);
}

.login-screen > .card > .card-body {
    padding-inline: 14px;
    border: 1px solid #eee5de;
    border-radius: 8px;
    box-shadow: none;
}

#login-form .form-group {
    position: relative;
}

#login-form input[name="phone"],
#login-form input[name="pin"] {
    border: 1px solid #e8dfd7;
    background-image: none;
}

.login-screen :is(#login-form, [data-pin-recovery-sms]) input[type="tel"][name="phone"] {
    border-color: #eee5de;
    box-shadow: 0 3px 12px rgb(98 58 29 / 4%);
}

.login-screen .card-body > .row.mt-3 a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #202020;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.login-screen .card-body > .row.mt-3 a::before {
    content: '';
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-size: contain;
}

.login-screen a[data-login-recovery-open]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff802c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9a8 8 0 1 1 0 6M4 4v5h5M12 8v4l3 2'/%3E%3C/svg%3E");
}

.login-screen .card-body > .row.mt-3 > .col-6:last-child a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff802c' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E");
}

.login-screen .card-body > .row.mt-3 a:focus-visible {
    outline: 2px solid #ff9b5b;
    outline-offset: 4px;
    border-radius: 3px;
}

#login-form input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fffdfa inset;
    -webkit-text-fill-color: #414141;
}

#login-form .form-group::before {
    content: '';
    position: absolute;
    top: 17px;
    left: 16px;
    z-index: 1;
    width: 22px;
    height: 22px;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

#login-form .form-group:has(input[name="phone"])::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff802c' stroke-width='1.8'%3E%3Crect x='6' y='2' width='12' height='20' rx='2'/%3E%3Cpath d='M11 18h2' stroke-linecap='round'/%3E%3C/svg%3E");
}

#login-form .form-group:has(input[name="pin"])::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff802c' stroke-width='1.8'%3E%3Crect x='4' y='10' width='16' height='12' rx='2'/%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3'/%3E%3C/svg%3E");
}

#login-pin-recovery .legacy-popup-panel {
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 36px rgb(45 25 13 / 24%);
}

#login-pin-recovery .legacy-popup-header {
    flex-shrink: 0;
    min-height: 60px;
    padding: 16px;
    border: 0;
    background: linear-gradient(110deg, #ff9818, #ff5c25);
    color: #fff;
    font-size: 17px;
    line-height: 1.35;
}

#login-pin-recovery .legacy-popup-header button {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgb(255 255 255 / 15%);
    color: #fff;
}
html body #login-pin-recovery .legacy-popup-header { border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; }
html body #login-pin-recovery .legacy-popup-header button,
html body #login-pin-recovery .legacy-popup-header button:is(:hover, :focus, :active) { background: transparent !important; background-image: none !important; border: 0 !important; box-shadow: none !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
html body #login-pin-recovery .legacy-popup-header button .fa { color: #fff !important; -webkit-text-fill-color: #fff !important; }
html body #login-pin-recovery form > button[type="submit"],
html body #login-pin-recovery form > button[type="submit"]:is(:hover, :focus, :active, :disabled) { background: transparent !important; background-image: none !important; border: 1px solid #ff842b !important; color: #ff842b !important; -webkit-text-fill-color: #ff842b !important; box-shadow: none !important; border-radius: 8px !important; }

#login-pin-recovery .legacy-popup-body {
    padding: 22px 18px;
}

:is(#login-pin-recovery, .pin-recovery-screen) .form-group {
    position: relative;
    margin-bottom: 20px;
}

:is(#login-pin-recovery, .pin-recovery-screen) input.form-control {
    width: 100%;
    min-width: 0;
    height: 56px;
    padding: 12px 14px;
    border: 1px solid #e8dfd7;
    border-radius: 15px;
    background: #fffdfa;
    box-shadow: 0 3px 10px rgb(98 58 29 / 4%);
    color: #414141;
    font-size: 16px;
}

:is(#login-pin-recovery, .pin-recovery-screen) input[type="tel"] {
    padding-left: 52px;
    text-align: left !important;
}

:is(#login-pin-recovery, .pin-recovery-screen) .form-group:has(input[type="tel"])::before {
    content: '';
    position: absolute;
    z-index: 1;
    top: 17px;
    left: 16px;
    width: 22px;
    height: 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff802c' stroke-width='1.8'%3E%3Crect x='6' y='2' width='12' height='20' rx='2'/%3E%3Cpath d='M11 18h2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    pointer-events: none;
}

:is(#login-pin-recovery, .pin-recovery-screen) form > button[type="submit"] {
    min-height: 52px;
    padding: 12px 16px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(110deg, #ff9818, #ff5c25);
    box-shadow: 0 6px 16px rgb(255 111 34 / 16%);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    white-space: normal;
}

:is(#login-pin-recovery, .pin-recovery-screen) form > button:disabled {
    opacity: .6;
}

:is(#login-pin-recovery, .pin-recovery-screen) input:focus,
:is(#login-pin-recovery, .pin-recovery-screen) button:focus-visible {
    outline: 2px solid #ff9b5b;
    outline-offset: 2px;
}

@media (max-width: 767px) {
    html.pwa-standalone.pwa-ios-standalone body .panel-new.active[data-panel-auth-open] {
        left: 0;
        right: 0;
        margin-inline: auto;
        transform: none;
    }
}

@media print {

}

@media (max-width: 480px) {
    .login-screen #login-form,
    .login-screen [data-pin-recovery-sms] {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .login-screen :is(#login-form, [data-pin-recovery-sms]) > .form-group {
        margin-bottom: 0;
    }
}

@media (max-width: 360px) {
    #panel-login-form .forgot-link {
        font-size: 14px !important;
    }

    #panel-login-form input[name="pin"],
    #login-form input[name="pin"] {
        padding-left: 42px;
        background-position-x: 12px;
    }
}