/* Страницы подтверждения почты и восстановления пароля */
.email-layout {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: max(360px, calc(100vh - 480px));
    padding: 26px 16px 44px;
}

.email-page {
    width: 100%;
    max-width: 560px;
    margin: 0;
    padding: 0;
}

/* На страницах почты карточка сама рисует фон — убираем вторую панель .content */
.email-layout .content.email-page {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    backdrop-filter: none;
}

.email-card {
    position: relative;
    padding: 28px 32px 22px;
    border: 1px solid rgba(216, 180, 106, 0.34);
    border-radius: 20px;
    background:
        radial-gradient(720px 260px at 50% -10%, rgba(255, 217, 102, 0.10), transparent 70%),
        linear-gradient(160deg, rgba(38, 26, 18, 0.96), rgba(18, 12, 8, 0.98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 230, 170, 0.08);
    color: #f3ecdf;
    font-family: "Philosopher", "Palatino Linotype", Georgia, serif;
}

.email-card__kicker {
    text-align: center;
    color: #d8b46a;
    font-size: 11px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
}

.email-card h1 {
    margin: 14px 0 12px;
    text-align: center;
    color: #f6e7cf;
    font-size: clamp(24px, 4vw, 32px);
    line-height: 1.2;
    text-shadow: 0 0 28px rgba(255, 122, 61, 0.18);
}

.email-lead {
    margin: 0 0 14px;
    color: #d8c6ad;
    font-size: 15px;
    line-height: 1.65;
    text-align: center;
}

.email-note {
    margin: 0 0 16px;
    color: #9f8c75;
    font-size: 12.5px;
    line-height: 1.6;
    text-align: center;
}

.email-error,
.email-success {
    margin: 0 0 16px;
    padding: 11px 14px;
    border-radius: 12px;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 13.5px;
    line-height: 1.5;
}

.email-error {
    border: 1px solid rgba(198, 84, 84, 0.5);
    background: rgba(198, 84, 84, 0.12);
    color: #ffb1b1;
}

.email-success {
    border: 1px solid rgba(95, 191, 138, 0.5);
    background: rgba(95, 191, 138, 0.12);
    color: #a9e6c4;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 4px 0 16px;
}

.email-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #cbb99f;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 12.5px;
    letter-spacing: 0.04em;
}

.email-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid rgba(216, 180, 106, 0.35);
    border-radius: 10px;
    background: rgba(12, 8, 5, 0.6);
    color: #f6e7cf;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.email-form input:focus {
    border-color: #ffd966;
    box-shadow: 0 0 0 3px rgba(255, 217, 102, 0.12);
}

.email-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 30px;
    border: 1px solid #ffe9a3;
    border-radius: 999px;
    background: linear-gradient(160deg, #f6d27c, #c9913c 55%, #8a5a1e);
    color: #1b1207;
    font-family: "Philosopher", Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(255, 122, 61, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: transform 0.18s ease, filter 0.18s ease;
    align-self: center;
}

.email-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.email-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 8px 0 16px;
    flex-wrap: wrap;
}

.email-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(216, 180, 106, 0.16);
    color: #8f7c63;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 12.5px;
}

.email-footer a {
    color: #d8b46a;
    text-decoration: none;
}

.email-footer a:hover {
    color: #ffe9a3;
    text-decoration: underline;
}

@media (max-width: 560px) {
    .email-layout {
        min-height: 0;
        padding: 24px 12px 40px;
    }

    .email-card {
        padding: 26px 20px 22px;
    }

    .email-btn {
        width: 100%;
    }
}
