/* =========================================
   ЭЛЕКТРОННЫЙ ЖУРНАЛ
   Оформление страницы входа
========================================= */

.journal-page {
    min-height: 100vh;
    background: #f7f6f1;
}

.journal-main {
    overflow: hidden;
}

/* ГЛАВНЫЙ БЛОК */

.journal-hero {
    position: relative;
    overflow: hidden;
    padding: 65px 0 80px;
    background:
        radial-gradient(
            ellipse at 80% 10%,
            rgba(201, 164, 92, 0.15),
            transparent 36%
        ),
        linear-gradient(135deg, #0b211a 0%, #12392b 60%, #102d24 100%);
    color: #fff;
}

.journal-hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(350px, 440px);
    align-items: center;
    gap: 70px;
}

/* ДЕКОРАТИВНЫЕ КРУГИ */

.journal-decoration {
    position: absolute;
    border: 1px solid rgba(201, 164, 92, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.journal-decoration-one {
    width: 500px;
    height: 500px;
    top: -230px;
    right: -150px;
}

.journal-decoration-two {
    width: 330px;
    height: 330px;
    top: -145px;
    right: -65px;
}

/* ЛЕВАЯ КОЛОНКА */

.journal-intro {
    max-width: 600px;
}

.journal-eyebrow {
    display: inline-block;
    color: #d8bd7d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.8;
}

.journal-intro h1 {
    margin: 20px 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(45px, 5vw, 66px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -1px;
}

.journal-intro h1 span {
    color: #d8bd7d;
}

.journal-gold-line {
    width: 65px;
    height: 3px;
    margin: 25px 0;
    background: #c9a45c;
}

.journal-intro > p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 15px;
    line-height: 1.95;
}

/* ПРЕИМУЩЕСТВА */

.journal-features {
    display: grid;
    gap: 25px;
    margin-top: 40px;
}

.journal-feature {
    display: flex;
    align-items: flex-start;
    gap: 17px;
}

.feature-icon {
    display: grid;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(201, 164, 92, 0.55);
    color: #d8bd7d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
}

.journal-feature strong {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-size: 14px;
}

.journal-feature p {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    line-height: 1.8;
}

/* ПАНЕЛЬ ВХОДА */

.journal-login-side {
    width: 100%;
    max-width: 440px;
    justify-self: end;
}

.login-card {
    padding: 35px;
    border: 1px solid rgba(201, 164, 92, 0.5);
    background: #fff;
    color: #27372f;
    box-shadow: 0 25px 75px rgba(0, 0, 0, 0.2);
}

/* ВЕРХНЯЯ ЧАСТЬ КАРТОЧКИ */

.login-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 27px;
}

.login-emblem {
    display: grid;
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    place-items: center;
    padding: 5px;
    border: 1px solid #c9a45c;
    background: #faf8f1;
}

.login-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-status {
    color: #99783c;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-align: right;
}

/* ЗАГОЛОВОК ФОРМЫ */

.login-card h2 {
    margin-bottom: 10px;
    color: #12392b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 31px;
    font-weight: 500;
}

.login-description {
    margin-bottom: 28px;
    color: #777f78;
    font-size: 13px;
    line-height: 1.8;
}

/* ПОЛЯ */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    color: #26382e;
    font-size: 12px;
    font-weight: 700;
}

.form-group input {
    display: block;
    width: 100%;
    min-height: 49px;
    padding: 12px 14px;
    border: 1px solid #dedfd8;
    border-radius: 0;
    outline: none;
    background: #fbfbf8;
    color: #20382c;
    font: inherit;
    font-size: 13px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder {
    color: #a1a69f;
}

.form-group input:focus {
    border-color: #b6944d;
    box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.12);
}

/* ПОКАЗАТЬ ПАРОЛЬ */

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 85px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    padding: 7px 3px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #8d713d;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.password-toggle:hover {
    color: #12392b;
}

.password-toggle:focus-visible {
    outline: 2px solid #b6944d;
    outline-offset: 2px;
}

/* СООБЩЕНИЕ */

.login-message {
    margin: 0 0 18px;
    padding: 12px;
    border: 1px solid #e5c4b8;
    background: #fff5f1;
    color: #8c3828;
    font-size: 12px;
    line-height: 1.7;
}

.login-message[hidden] {
    display: none;
}

/* КНОПКА ВХОДА */

.login-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    min-height: 52px;
    margin-top: 9px;
    padding: 14px 18px;
    border: 1px solid #12392b;
    background: #12392b;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s;
}

.login-submit:hover {
    border-color: #245740;
    background: #245740;
}

.login-submit:focus-visible {
    outline: 3px solid rgba(201, 164, 92, 0.6);
    outline-offset: 3px;
}

.login-submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

.login-arrow {
    color: #d8bd7d;
    font-size: 21px;
}

/* ПРИМЕЧАНИЕ О БЕЗОПАСНОСТИ */

.login-security {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e9e9e2;
}

.security-symbol {
    flex-shrink: 0;
    color: #b6944d;
    font-size: 12px;
}

.login-security p {
    color: #818780;
    font-size: 11px;
    line-height: 1.8;
}

.login-help {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
}

/* НИЖНЯЯ ПОЛОСА */

.journal-bottom {
    padding: 35px 0;
    border-bottom: 1px solid #e7e5dc;
    background: #fff;
}

.journal-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.bottom-label {
    color: #a17d3b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.journal-bottom h2 {
    margin-top: 8px;
    color: #12392b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(20px, 3vw, 27px);
    font-weight: 500;
    line-height: 1.5;
}

.journal-back {
    flex-shrink: 0;
    padding: 13px 17px;
    border: 1px solid #d7c7a3;
    color: #12392b;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.2s;
}

.journal-back:hover {
    background: #f8f3e8;
}

/* ПОДВАЛ */

.journal-footer {
    padding: 23px 0;
    background: #0b211a;
    color: #fff;
}

.journal-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.journal-footer-content span:first-child {
    color: #d8bd7d;
    font-size: 13px;
    font-weight: 700;
}

.journal-footer-content span:last-child {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

/* ПЛАНШЕТЫ */

@media (max-width: 1000px) {
    .journal-hero-content {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
        gap: 35px;
    }

    .login-card {
        padding: 27px;
    }

    .journal-intro h1 {
        font-size: 48px;
    }
}

/* МОБИЛЬНЫЕ УСТРОЙСТВА */

@media (max-width: 760px) {
    .journal-hero {
        padding: 45px 0 55px;
    }

    .journal-hero-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .journal-intro {
        max-width: 600px;
    }

    .journal-intro h1 {
        font-size: clamp(42px, 9vw, 56px);
    }

    .journal-intro > p {
        font-size: 14px;
    }

    .journal-features {
        gap: 21px;
        margin-top: 30px;
    }

    .journal-login-side {
        max-width: 520px;
        justify-self: center;
    }

    .login-card {
        padding: 27px 24px;
    }

    .journal-bottom-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .journal-back {
        align-self: flex-start;
    }
}

/* МАЛЕНЬКИЕ ТЕЛЕФОНЫ */

@media (max-width: 380px) {
    .journal-intro h1 {
        font-size: 39px;
    }

    .journal-eyebrow {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .login-card {
        padding: 22px 17px;
    }

    .login-card h2 {
        font-size: 27px;
    }

    .login-status {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .journal-footer-content {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Ссылка-кнопка «Войти» и сообщение об успехе на странице входа */
a.login-link { text-decoration: none; }
.login-message.is-success { border-color: #b8dcc4; background: #eef8f1; color: #1d6a3a; }