/**
 * Since 2015 Ewonta
 *
 * NOTICE OF LICENSE
 *
 * This file is not open source! Each license that you purchased is only available for 1 wesite only.
 * If you want to use this file on more websites (or projects), you need to purchase additional licenses. 
 * You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
 *
 *  @author     Ewonta <support@ewonta.ru>
 *  @copyright  Since 2015 Ewonta
 *  @license    Valid for 1 website (or project) for each purchase of license
 */

.form-control-comment.in-phon{
    padding: 0;
    margin: 0;
}
.m-0{
    margin: 0px;
}

.box_phone_v_input,.box_phone_v_input_cod{
    display: flex;
}
.send_df > button, .compare_code{
    padding: .38rem 1rem;
}

.alert-link {
    display: flex;
    align-items: center;
}

.atc_spinner {
    -webkit-animation-name: spin;
    -webkit-animation-duration: 4000ms;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
    -moz-animation-name: spin;
    -moz-animation-duration: 4000ms;
    -moz-animation-iteration-count: infinite;
    -moz-animation-timing-function: linear;
    -ms-animation-name: spin;
    -ms-animation-duration: 4000ms;
    -ms-animation-iteration-count: infinite;
    -ms-animation-timing-function: linear;
     
    animation-name: spin;
    animation-duration: 4000ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}
@-ms-keyframes spin {
    from { -ms-transform: rotate(0deg); }
    to { -ms-transform: rotate(360deg); }
}
@-moz-keyframes spin {
    from { -moz-transform: rotate(0deg); }
    to { -moz-transform: rotate(360deg); }
}
@-webkit-keyframes spin {
    from { -webkit-transform: rotate(0deg); }
    to { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
    from {
        transform:rotate(0deg);
    }
    to {
        transform:rotate(360deg);
    }
}

/* SMSC CAPTCHA: compact, container-aware layout */
.ew-smsc-captcha {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 14px 0;
    text-align: left;
    container-type: inline-size;
}
.ew-smsc-captcha__row {
    display: grid;
    grid-template-columns: minmax(160px, 0.9fr) minmax(140px, 1fr);
    /* Align image and input at the same top edge.
       The hint below the input must not affect image positioning. */
    align-items: start;
    gap: 12px;
    width: 100%;
    min-width: 0;
}
.ew-smsc-captcha__challenge {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 0;
}
.ew-smsc-captcha__challenge img {
    display: block;
    flex: 0 0 120px;
    width: 120px;
    max-width: 120px;
    height: 44px;
    object-fit: contain;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    background: #fff;
}
.ew-smsc-captcha__challenge .js-smsc-captcha-refresh {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    color: #6c757d;
    text-decoration: none;
    border: 0;
    border-radius: 4px;
    background: transparent;
}
.ew-smsc-captcha__challenge .js-smsc-captcha-refresh:hover,
.ew-smsc-captcha__challenge .js-smsc-captcha-refresh:focus {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.08);
    text-decoration: none;
}
.ew-smsc-captcha__challenge .material-icons {
    display: block;
    font-size: 24px;
    line-height: 1;
}
.ew-smsc-captcha__field {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}
.ew-smsc-captcha__field label.sr-only {
    position: absolute;
}
.ew-smsc-captcha__field input.form-control {
    display: block;
    width: 100%;
    min-width: 0;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid #8c9b96;
    border-radius: 7px !important;
    background-color: #fff;
    color: #495057;
    line-height: 1.5;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}
.ew-smsc-captcha__field input.form-control:focus {
    border-color: #80bdff;
    border-radius: 7px !important;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}
.ew-smsc-captcha__field .form-text {
    display: block;
    margin-top: 5px;
    margin-bottom: 0;
    line-height: 1.35;
    font-size: 0.8125rem;
    overflow-wrap: anywhere;
}
@container (max-width: 359px) {
    .ew-smsc-captcha__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
    }
    .ew-smsc-captcha__challenge {
        grid-column: 1;
    }
    .ew-smsc-captcha__field {
        grid-column: 1;
    }
}
@supports not (container-type: inline-size) {
    @media (max-width: 420px) {
        .ew-smsc-captcha__row {
            grid-template-columns: minmax(0, 1fr);
            gap: 9px;
        }
    }
}


/* Keep the phone-auth form compact and centered inside its available parent width. */
.page-authentication section.login-form.login-form-cust {
    display: block;
    width: min(100%, 640px) !important;
    max-width: 640px !important;
    min-width: min(320px, 100%) !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding: clamp(14px, 2.5vw, 24px) !important;
    box-sizing: border-box !important;
    text-align: left;
}
.page-authentication .login-form-cust #phone-step,
.page-authentication .login-form-cust #code-step {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.page-authentication .login-form-cust #phone-step h2,
.page-authentication .login-form-cust #code-step h2 {
    text-align: center !important;
}
