/* COMTRANS auth pages */
.af-auth-page {
    --af-auth-blue: #14326e;
    --af-auth-blue-2: #47639a;
    --af-auth-blue-light: #96afd7;
    --af-auth-graphite: #262523;
    --af-auth-gray: #515151;
    --af-auth-gray-light: #909091;
    --af-auth-white: #fefefe;
    padding: 42px 16px 64px;
    background:
        radial-gradient(circle at 10% 10%, rgba(150, 175, 215, .18), transparent 34%),
        linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
}

.af-auth-page__container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.af-auth-page__card {
    width: min(100%, 560px);
    margin: 0 auto;
    background: var(--af-auth-white);
    border: 1px solid rgba(20, 50, 110, .12);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(38, 37, 35, .10);
    overflow: hidden;
}

.af-auth-page__card--wide {
    width: min(100%, 760px);
}

.af-auth-page__header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 26px 30px 22px;
    border-bottom: 1px solid rgba(20, 50, 110, .10);
}

.af-auth-page__icon {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--af-auth-blue);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 10px 22px rgba(20, 50, 110, .20);
}

.af-auth-page__heading {
    min-width: 0;
}

.af-auth-page__title {
    margin: 0;
    color: var(--af-auth-graphite);
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}

.af-auth-page__subtitle {
    margin: 5px 0 0;
    color: var(--af-auth-gray);
    font-size: 14px;
    line-height: 1.5;
}

.af-auth-page__form {
    padding: 28px 30px 30px;
}

.af-auth-page__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.af-auth-page__field {
    margin-bottom: 18px;
}

.af-auth-page__grid .af-auth-page__field {
    margin-bottom: 0;
}

.af-auth-page__field--full {
    grid-column: 1 / -1;
}

.af-auth-page__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.af-auth-page__label {
    display: block;
    margin: 0 0 8px;
    color: var(--af-auth-graphite);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
}

.af-auth-page__label-row .af-auth-page__label {
    margin: 0;
}

.af-auth-page__forgot {
    color: var(--af-auth-blue-2);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.af-auth-page__forgot:hover {
    color: var(--af-auth-blue);
    text-decoration: underline;
}

.af-auth-page__control {
    position: relative;
}

.af-auth-page__field-icon {
    position: absolute;
    z-index: 2;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--af-auth-blue-2);
    font-size: 15px;
    pointer-events: none;
}

.af-auth-page__input {
    display: block;
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 16px 0 50px !important;
    border: 1px solid rgba(20, 50, 110, .20) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--af-auth-graphite) !important;
    font: inherit !important;
    font-size: 14px !important;
    line-height: 52px !important;
    text-indent: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.af-auth-page__input::placeholder {
    color: var(--af-auth-gray-light);
    opacity: 1;
}

.af-auth-page__input:focus {
    border-color: var(--af-auth-blue) !important;
    box-shadow: 0 0 0 3px rgba(20, 50, 110, .10) !important;
    background: #fff !important;
}

.af-auth-page__section-title {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 0;
    color: var(--af-auth-blue);
    font-size: 13px;
    font-weight: 700;
}

.af-auth-page__section-title::after {
    content: '';
    height: 1px;
    flex: 1;
    background: rgba(20, 50, 110, .12);
}

.af-auth-page__alerts {
    margin: 18px 0 0;
}

.af-auth-page__alerts .alert {
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 !important;
    border-radius: 10px;
}

.af-auth-page__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
}

.af-auth-page__remember {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--af-auth-gray);
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.af-auth-page__remember input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.af-auth-page__check {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(20, 50, 110, .35);
    border-radius: 6px;
    color: transparent;
    background: #fff;
    font-size: 10px;
    transition: .2s ease;
}

.af-auth-page__remember input:checked + .af-auth-page__check {
    background: var(--af-auth-blue);
    border-color: var(--af-auth-blue);
    color: #fff;
}

.af-auth-page__submit {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 20px;
    border: 0;
    border-radius: 12px;
    background: var(--af-auth-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(20, 50, 110, .18);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.af-auth-page__submit:hover {
    background: #102b61;
    box-shadow: 0 12px 28px rgba(20, 50, 110, .24);
    transform: translateY(-1px);
}

.af-auth-page__submit:disabled {
    opacity: .7;
    cursor: wait;
    transform: none;
}

.af-auth-page__submit-loading {
    display: none;
}

.af-auth-page__form.is-loading .af-auth-page__submit-loading {
    display: inline-flex;
}

.af-auth-page__form.is-loading .af-auth-page__submit-arrow {
    display: none;
}

.af-auth-page__divider {
    height: 1px;
    margin: 22px 0 18px;
    background: rgba(20, 50, 110, .10);
}

.af-auth-page__secondary {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid rgba(20, 50, 110, .28);
    border-radius: 12px;
    background: #fff;
    color: var(--af-auth-blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: .2s ease;
}

.af-auth-page__secondary:hover {
    background: rgba(150, 175, 215, .12);
    border-color: var(--af-auth-blue);
    color: var(--af-auth-blue);
}

.af-auth-page__secondary-arrow {
    margin-left: auto;
    font-size: 12px;
}

.af-auth-page__help {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 20px;
    padding: 13px 14px;
    border-radius: 12px;
    background: rgba(150, 175, 215, .14);
    color: var(--af-auth-gray);
    font-size: 13px;
    line-height: 1.55;
}

.af-auth-page__help i {
    margin-top: 3px;
    color: var(--af-auth-blue);
}

@media (max-width: 767px) {
    .af-auth-page {
        padding: 24px 10px 42px;
    }

    .af-auth-page__card {
        border-radius: 18px;
    }

    .af-auth-page__header {
        padding: 22px 20px 18px;
    }

    .af-auth-page__icon {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 19px;
    }

    .af-auth-page__title {
        font-size: 23px;
    }

    .af-auth-page__subtitle {
        font-size: 13px;
    }

    .af-auth-page__form {
        padding: 22px 20px 24px;
    }

    .af-auth-page__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .af-auth-page__field--full,
    .af-auth-page__section-title {
        grid-column: auto;
    }

    .af-auth-page__options {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .af-auth-page__header {
        gap: 12px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .af-auth-page__form {
        padding-left: 16px;
        padding-right: 16px;
    }

    .af-auth-page__label-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .af-auth-page__input {
        height: 50px !important;
        min-height: 50px !important;
        line-height: 50px !important;
    }
}
