/* ==========================================================================
   Auth page layout
   ========================================================================== */

.rk-auth-page {
    display: flex;
    flex-direction: column;
}

.rk-auth-main {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 18px 72px;
}

.rk-auth-card {
    position: relative;
    width: 100%;
    max-width: 470px;
    padding: 38px 38px 34px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, .20);
    background:
        radial-gradient(circle at 76% 0%, rgba(255, 49, 195, .28), transparent 38%),
        radial-gradient(circle at 7% 0%, rgba(69, 121, 255, .20), transparent 39%),
        linear-gradient(145deg, rgba(255, 255, 255, .115), rgba(255, 255, 255, .045));
    box-shadow:
        0 26px 80px rgba(0, 0, 0, .44),
        0 0 58px rgba(255, 54, 200, .20),
        inset 0 1px 0 rgba(255, 255, 255, .18);
    backdrop-filter: blur(24px);
}


/* ==========================================================================
   Card heading / note / alert
   ========================================================================== */

.rk-auth-card-head {
    margin-bottom: 28px;
}

.rk-auth-card-head h1 {
    margin: 0;
    color: #fff;
    font-size: 34px;
    line-height: 1.07;
    letter-spacing: -.04em;
    font-weight: 800;
}

.rk-auth-card-head p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .70);
    font-size: 16px;
    line-height: 1.45;
}

.rk-auth-note {
    margin: -10px 0 22px;
    padding: 13px 15px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    line-height: 1.45;
}

.rk-auth-card .alert {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .08);
    color: #fff;
}


/* ==========================================================================
   Form base
   ========================================================================== */

.rk-auth-form {
    width: 100%;
}

.rk-auth-form-group {
    position: relative;
    margin-bottom: 16px;
}

.rk-auth-form-group label,
.rk-auth-form-group .control-label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.01em;
}

.rk-auth-password-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
}

.rk-auth-password-label-row label {
    margin-bottom: 0;
}

.rk-auth-link {
    color: #9ab2ff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}

.rk-auth-link:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}


/* ==========================================================================
   Inputs
   ========================================================================== */

.rk-auth-input-wrap {
    position: relative;
}

.rk-auth-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, .46);
    font-size: 15px;
    line-height: 1;
    pointer-events: none;
    text-shadow: 0 0 14px rgba(80, 142, 255, .22);
}

.rk-auth-input-wrap .form-control,
.rk-auth-card input.form-control {
    height: 50px;
    min-height: 50px;
    padding-left: 46px;
    padding-right: 14px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, .16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .055));
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .12),
        0 12px 24px rgba(0, 0, 0, .16);
}

.rk-auth-input-wrap .form-control::placeholder {
    color: rgba(255, 255, 255, .42);
    font-weight: 600;
}

.rk-auth-input-wrap .form-control:focus,
.rk-auth-card input.form-control:focus {
    border-color: rgba(78, 146, 255, .88);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .075));
    color: #ffffff;
    box-shadow:
        0 0 0 3px rgba(58, 130, 255, .20),
        0 0 26px rgba(58, 130, 255, .22),
        inset 0 1px 0 rgba(255, 255, 255, .16);
}

.rk-auth-code-input {
    text-align: center;
    letter-spacing: .28em;
    font-size: 18px !important;
}


/* ==========================================================================
   Validation states / errors
   ========================================================================== */

.rk-auth-form-group:focus-within .rk-auth-input-icon {
    color: #69a7ff;
    text-shadow: 0 0 18px rgba(78, 146, 255, .55);
}

.rk-auth-form-group.has-error .rk-auth-input-icon,
.rk-auth-form-group.rk-invalid .rk-auth-input-icon {
    color: #ff6fae;
    text-shadow: 0 0 18px rgba(255, 77, 150, .55);
}

.rk-auth-form-group.has-success .rk-auth-input-icon,
.rk-auth-form-group.rk-valid .rk-auth-input-icon {
    color: #79ffbf;
    text-shadow: 0 0 18px rgba(80, 255, 170, .38);
}

.rk-auth-form-group.has-error .form-control,
.rk-auth-form-group.rk-invalid .form-control {
    border-color: rgba(255, 77, 150, .90) !important;
    background:
        linear-gradient(180deg, rgba(255, 77, 150, .14), rgba(255, 255, 255, .06)) !important;
    box-shadow:
        0 0 0 3px rgba(255, 77, 150, .16) !important,
        0 0 24px rgba(255, 77, 150, .18) !important,
        inset 0 1px 0 rgba(255, 255, 255, .12) !important;
}

.rk-auth-form-group.has-success .form-control,
.rk-auth-form-group.rk-valid .form-control {
    border-color: rgba(92, 255, 174, .50);
    box-shadow:
        0 0 0 3px rgba(92, 255, 174, .08),
        inset 0 1px 0 rgba(255, 255, 255, .12);
}

.rk-auth-card .help-block,
.rk-auth-card .invalid-feedback,
.rk-auth-card .error,
.rk-auth-card .text-danger {
    display: block;
    min-height: 0;
    margin: 7px 0 0;
    padding: 0;
    color: #ff8fc0 !important;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
    text-shadow: 0 0 16px rgba(255, 77, 150, .24);
}

.rk-auth-card .help-block:empty,
.rk-auth-card .invalid-feedback:empty,
.rk-auth-card .error:empty {
    display: none;
}

.rk-auth-form-group.has-error .help-block:not(:empty),
.rk-auth-form-group.rk-invalid .help-block:not(:empty) {
    position: relative;
    display: block;
    padding-left: 18px;
}

.rk-auth-form-group.has-error .help-block:not(:empty)::before,
.rk-auth-form-group.rk-invalid .help-block:not(:empty)::before {
    content: "!";
    position: absolute;
    left: 0;
    top: 1px;
    width: 13px;
    height: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 77, 150, .18);
    color: #ff8fc0;
    font-size: 9px;
    font-weight: 900;
    box-shadow: 0 0 14px rgba(255, 77, 150, .28);
}


/* ==========================================================================
   Remember me / submit
   ========================================================================== */

.rk-auth-remember {
    margin: 4px 0 18px;
}

.rk-auth-remember .form-group {
    margin: 0;
}

.rk-auth-remember label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: rgba(255, 255, 255, .70);
    font-size: 13px;
    font-weight: 700;
}

.rk-auth-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #7b35ff;
}

.rk-auth-submit {
    height: 54px;
    min-height: 54px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(92deg, #1f72ff 0%, #7b35ff 48%, #ff3da9 100%);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 900;
    box-shadow:
        0 18px 36px rgba(94, 66, 255, .34),
        0 0 26px rgba(255, 64, 178, .18);
}

.rk-auth-submit:hover,
.rk-auth-submit:focus {
    color: #ffffff !important;
    filter: brightness(1.06);
}


/* ==========================================================================
   Social auth
   ========================================================================== */

.rk-auth-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px 0 16px;
    color: rgba(255, 255, 255, .58);
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
}

.rk-auth-divider::before,
.rk-auth-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: rgba(255, 255, 255, .14);
}

.rk-auth-divider span {
    flex: 0 0 auto;
    padding: 0 15px;
}

.rk-auth-vk,
.rk-auth-yandex {
    width: 100%;
    margin-top: 12px;
    overflow: visible;
}

.rk-auth-vk > *,
.rk-auth-yandex > * {
    max-width: 100%;
}

.rk-auth-social {
    margin-top: 12px;
}

.rk-auth-social .social-auth,
.rk-auth-social .auth-clients {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.rk-auth-social .auth-client {
    margin: 0 !important;
}

.rk-auth-social .auth-client a {
    min-width: 58px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .075);
    color: #fff !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .08),
        0 14px 26px rgba(0, 0, 0, .20);
}


/* ==========================================================================
   Bottom links / captcha
   ========================================================================== */

.rk-auth-bottom-links {
    margin-top: 20px;
    text-align: center;
}

.rk-auth-bottom-links p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .64);
    font-size: 13px;
    line-height: 1.35;
}

.rk-auth-bottom-links a {
    color: #9ab2ff !important;
    text-decoration: none;
    font-weight: 700;
}

.rk-auth-bottom-links a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

.rk-auth-captcha img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 8px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .22);
}


/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 767px) {
    .rk-auth-main {
        align-items: flex-start;
        padding: 24px 16px 42px;
    }

    .rk-auth-card {
        max-width: 460px;
        padding: 24px 18px 22px;
        border-radius: 22px;
    }

    .rk-auth-card-head {
        margin-bottom: 22px;
    }

    .rk-auth-card-head h1 {
        font-size: 30px;
    }

    .rk-auth-card-head p {
        font-size: 14px;
    }

    .rk-auth-input-wrap .form-control,
    .rk-auth-card input.form-control {
        height: 48px;
        min-height: 48px;
        font-size: 14px;
    }

    .rk-auth-submit {
        height: 52px;
        min-height: 52px;
        font-size: 15px;
    }
}