.eml-elegant {
    --eml-elegant-bg: #fffdfa;
    --eml-elegant-surface: #fffaf4;
    --eml-elegant-surface-focus: #fffefc;
    --eml-elegant-text: #2e2925;
    --eml-elegant-muted: #84786d;
    --eml-elegant-border: #e8ddd0;
    --eml-elegant-border-strong: #d8c3aa;
    --eml-elegant-accent: #b78a57;
    --eml-elegant-accent-dark: #9d7345;
    --eml-elegant-accent-soft: #f2e7da;
    width: min(100%, 390px);
    box-sizing: border-box;
    padding: 30px 30px 28px;
    color: var(--eml-elegant-text);
    background:
        radial-gradient(circle at 100% 0%, rgba(183, 138, 87, .08), transparent 34%),
        linear-gradient(180deg, #fffefc 0%, var(--eml-elegant-bg) 100%);
    border: 1px solid var(--eml-elegant-border);
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(71, 52, 33, .10);
    font: inherit;
}

.eml-elegant *,
.eml-elegant *::before,
.eml-elegant *::after { box-sizing: border-box; }

.eml-elegant__ornament { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; color: var(--eml-elegant-accent); }
.eml-elegant__ornament::before,
.eml-elegant__ornament::after { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, currentColor); opacity: .65; }
.eml-elegant__ornament::after { transform: scaleX(-1); }
.eml-elegant__ornament span { width: 6px; height: 6px; border: 1px solid currentColor; transform: rotate(45deg); }

.eml-elegant__head { margin-bottom: 24px; text-align: center; }
.eml-elegant__eyebrow { margin-bottom: 7px; color: var(--eml-elegant-accent); font-size: .72rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.eml-elegant__title,
.eml-elegant__account-title { color: var(--eml-elegant-text); font-size: 1.55rem; line-height: 1.18; font-weight: 650; letter-spacing: -.02em; }
.eml-elegant__subtitle,
.eml-elegant__account-subtitle { margin-top: 7px; color: var(--eml-elegant-muted); font-size: .92rem; line-height: 1.55; }
.eml-elegant__pretext,
.eml-elegant__posttext { color: var(--eml-elegant-muted); font-size: .92rem; line-height: 1.6; }
.eml-elegant__pretext { margin: -7px 0 20px; }
.eml-elegant__posttext { margin-top: 18px; }
.eml-elegant__pretext > :first-child,
.eml-elegant__posttext > :first-child { margin-top: 0; }
.eml-elegant__pretext > :last-child,
.eml-elegant__posttext > :last-child { margin-bottom: 0; }

.eml-elegant__form { display: grid; gap: 17px; }
.eml-elegant__field { display: grid; gap: 7px; }
.eml-elegant__field > label { color: #5f554c; font-size: .81rem; font-weight: 650; }
.eml-elegant__control {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 49px;
    padding: 0 14px;
    background: var(--eml-elegant-surface);
    border: 1px solid var(--eml-elegant-border);
    border-radius: 14px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.eml-elegant__control--password { grid-template-columns: 20px minmax(0, 1fr) 36px; }
.eml-elegant__control:focus-within { background: var(--eml-elegant-surface-focus); border-color: var(--eml-elegant-border-strong); box-shadow: 0 0 0 3px rgba(183, 138, 87, .10); }
.eml-elegant__control-icon { color: #b09a82; font-size: 15px; text-align: center; }
.eml-elegant__control input {
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 12px 0 !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: var(--eml-elegant-text) !important;
    font: inherit;
}
.eml-elegant__control input::placeholder { color: #b0a69c; }
.eml-elegant__password-toggle { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #a49789; cursor: pointer; }
.eml-elegant__password-toggle:hover { background: var(--eml-elegant-accent-soft); color: var(--eml-elegant-accent-dark); }

.eml-elegant__meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: .82rem; }
.eml-elegant__meta--end { justify-content: flex-end; }
.eml-elegant__remember { display: inline-flex; align-items: center; gap: 7px; color: var(--eml-elegant-muted); cursor: pointer; }
.eml-elegant__remember input { width: 16px; height: 16px; margin: 0; accent-color: var(--eml-elegant-accent); }
.eml-elegant a { color: var(--eml-elegant-accent-dark); text-decoration: none; }
.eml-elegant a:hover { color: #7f5a35; text-decoration: none; }
.eml-elegant__forgot { font-weight: 650; white-space: nowrap; }

.eml-elegant__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 49px;
    padding: 11px 18px;
    border: 1px solid var(--eml-elegant-accent);
    border-radius: 14px;
    background: linear-gradient(135deg, #bf9668 0%, var(--eml-elegant-accent) 100%);
    color: #fff;
    box-shadow: 0 10px 22px rgba(157, 115, 69, .18);
    font: inherit;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.eml-elegant__submit:hover { transform: translateY(-1px); box-shadow: 0 13px 26px rgba(157, 115, 69, .24); background: linear-gradient(135deg, #c8a174 0%, #a97d4d 100%); }

.eml-elegant__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding-top: 2px; color: var(--eml-elegant-muted); font-size: .80rem; text-align: center; }
.eml-elegant__links > a { color: #8b7c6e; }
.eml-elegant__separator { color: #c9b49d; }
.eml-elegant__register { color: var(--eml-elegant-muted); }
.eml-elegant__register a { font-weight: 700; }

.eml-elegant--logout { text-align: center; }
.eml-elegant__account-mark { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 17px; border: 1px solid var(--eml-elegant-border-strong); border-radius: 50%; background: linear-gradient(145deg, #fffdf9, var(--eml-elegant-accent-soft)); color: var(--eml-elegant-accent-dark); font-size: 23px; }
.eml-elegant__account-subtitle { margin-bottom: 19px; }
.eml-elegant__greeting { margin: 0 0 17px; padding: 13px 15px; border-top: 1px solid var(--eml-elegant-border); border-bottom: 1px solid var(--eml-elegant-border); color: #5f554c; font-weight: 650; }
.eml-elegant__profile { display: inline-flex; margin-bottom: 15px; font-weight: 650; }
.eml-elegant__logout-form { margin-top: 3px; }

@media (max-width: 480px) {
    .eml-elegant { width: 100%; padding: 25px 20px 23px; border-radius: 18px; }
    .eml-elegant__title,
    .eml-elegant__account-title { font-size: 1.4rem; }
    .eml-elegant__meta { align-items: flex-start; flex-direction: column; gap: 9px; }
    .eml-elegant__meta--end { align-items: flex-end; }
    .eml-elegant__forgot { white-space: normal; }
    .eml-elegant__links { flex-direction: column; gap: 6px; }
    .eml-elegant__separator { display: none; }
}
/* PHASE EML 1.0.1A — Password Toggle Text Visual Hide */
.eml-elegant__password-toggle > .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
