@font-face {
    font-family: "Cormorant Garamond";
    src: url("https://mail.firrani.love/skins/custom/fonts/CormorantGaramond-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("https://mail.firrani.love/skins/custom/fonts/CormorantGaramond-Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: block;
}


/* =========================================================
   Фон страницы
   ========================================================= */

body.task-login {
    min-height: 100vh;
    min-height: 100svh;

    background:
        linear-gradient(
            rgba(8, 12, 18, 0.48),
            rgba(8, 12, 18, 0.62)
        ),
        url("./images/background.jpg") center center / cover no-repeat fixed;
}

body.task-login #layout {
    min-height: 100vh;
    min-height: 100svh;

    background: transparent !important;
}

body.task-login #layout-content {
    width: 100%;

    min-height: 100vh;
    min-height: 100svh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background: transparent !important;
}


/* =========================================================
   Убираем штатные элементы
   ========================================================= */

body.task-login #logo {
    display: none !important;
}

body.task-login #login-footer {
    display: none !important;
}


/* =========================================================
   Карточка входа
   ========================================================= */

body.task-login #login-form {
    position: relative !important;
    top: auto !important;
    z-index: 20;

    width: 100%;
    max-width: 420px;

    margin: 0 !important;
    padding: 30px 32px 28px;

    background: rgba(18, 22, 30, 0.82);

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}


/* =========================================================
   Поля ввода
   ========================================================= */

body.task-login #login-form .form-control {
    min-height: 50px;

    background: rgba(255, 255, 255, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;

    color: #fff;

    box-shadow: none;

    font-family: "Cormorant Garamond", serif;
    font-size: 18px;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.15px;
}

body.task-login #login-form .form-control:focus {
    background: rgba(255, 255, 255, 0.11);

    border-color: rgba(255, 255, 255, 0.45);

    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.07);
}

body.task-login #login-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.58);

    font-family: "Cormorant Garamond", serif;
    font-size: 18px;
    font-weight: 400;
    font-style: normal;

    opacity: 1;
}


/* =========================================================
   Labels
   ========================================================= */

body.task-login #login-form label {
    color: rgba(255, 255, 255, 0.80);

    font-family: "Cormorant Garamond", serif;
    font-size: 17px;
    font-weight: 400;
    font-style: normal;
}


/* =========================================================
   Кнопка "Войти"
   ========================================================= */

body.task-login #rcmloginsubmit {
    width: 100%;
    min-height: 50px;

    margin-top: 10px;

    border: 0;
    border-radius: 12px;

    font-family: "Cormorant Garamond", serif;
    font-size: 20px;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.4px;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.20);

    transition:
        transform .15s ease,
        filter .15s ease,
        box-shadow .15s ease;
}

body.task-login #rcmloginsubmit:hover {
    transform: translateY(-1px);

    filter: brightness(1.06);

    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.26);
}

body.task-login #rcmloginsubmit:active {
    transform: translateY(0);
}


/* =========================================================
   Ошибки входа
   ========================================================= */

body.task-login .alert,
body.task-login .ui-alert {
    border-radius: 12px;
}


/* =========================================================
   Подпись под кнопкой
   ========================================================= */

.task-login .formbuttons::after {
    content: "Дом для самых важных слов";

    display: block;

    margin-top: 28px;

    text-align: center;

    font-family: "Cormorant Garamond", serif;
    font-size: 21px;
    font-weight: 400;
    font-style: italic;

    line-height: 1.4;
    letter-spacing: 0.5px;

    color: rgba(255, 255, 255, 0.74);

    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   Служебная подпись
   ========================================================= */

.custom-service-note {
    position: fixed !important;

    right: 22px !important;
    bottom: 18px !important;
    left: auto !important;
    top: auto !important;

    width: auto !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    z-index: 10 !important;

    font-family: "Cormorant Garamond", serif;
    font-size: 15px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.45;

    text-align: right;

    color: rgba(255, 255, 255, 0.68);

    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.42);

    pointer-events: auto;
}

.custom-service-note > div {
    white-space: nowrap;
}

.custom-service-note a {
    color: inherit;

    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.28);
    text-underline-offset: 3px;

    transition:
        color 150ms ease,
        text-decoration-color 150ms ease;
}

.custom-service-note a:hover {
    color: rgba(255, 255, 255, 0.92);
    text-decoration-color: rgba(255, 255, 255, 0.65);
}


/* =========================================================
   Средняя ширина
   ========================================================= */

@media (min-width: 521px) and (max-width: 820px) {

    .custom-service-note {
        left: 14px !important;
        right: 14px !important;
        bottom: 14px !important;

        width: auto !important;
        max-width: none !important;

        font-size: 14px;
        line-height: 1.45;

        text-align: center;
    }

    .custom-service-note > div {
        white-space: normal;
    }

}


/* =========================================================
   Мобильная версия
   ========================================================= */

@media (max-width: 520px) {

    body.task-login #layout-content {
        padding: 16px;
    }

    body.task-login #login-form {
        max-width: 100%;

        padding: 24px 20px 22px;

        border-radius: 16px;
    }

    body.task-login #login-form .form-control {
        font-size: 17px;
    }

    body.task-login #login-form .form-control::placeholder {
        font-size: 17px;
    }

    body.task-login #rcmloginsubmit {
        font-size: 19px;
    }

    .task-login .formbuttons::after {
        font-size: 20px;
        margin-top: 24px;
    }

    .custom-service-note {
        left: 14px !important;
        right: 14px !important;
        bottom: max(10px, env(safe-area-inset-bottom)) !important;

        width: auto !important;
        max-width: none !important;

        font-size: 15px !important;
        line-height: 1.5 !important;

        text-align: center;
    }

    .custom-service-note > div {
        white-space: normal;
    }

    .custom-service-note a[href^="mailto:"] {
        display: inline-block;
    }

}


/* =========================================================
   Fallback без backdrop-filter
   ========================================================= */

@supports not (backdrop-filter: blur(10px)) {

    body.task-login #login-form {
        background: rgba(18, 22, 30, 0.95);
    }

}
