@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat/Montserrat-Regular.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat/Montserrat-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-display: swap;
}

:root {
    --account-ink: #21184f;
    --account-muted: #696970;
    --account-border: #c9c9cf;
    --account-danger: #b42318;
    --account-card: rgba(255, 255, 255, .94);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; }

body.account-page {
    margin: 0;
    color: var(--account-ink);
    font-family: "Montserrat", "Segoe UI", sans-serif;
    background: linear-gradient(120deg, #fff 0%, #fbfbfc 54%, #d7d6e0 78%, #9693aa 100%);
}

.account-shell {
    width: min(100%, 1024px);
    min-height: 100vh;
    margin: 0 auto;
    padding: clamp(40px, 14vh, 155px) 24px 28px;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.account-header { text-align: center; }
.account-product {
    color: var(--account-ink);
    font-size: clamp(1.55rem, 3.2vw, 2rem);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}
.account-product:hover { color: var(--account-ink); }

.account-card {
    position: relative;
    align-self: start;
    width: min(100%, 396px);
    margin: clamp(64px, 11vh, 108px) auto 40px;
    padding: 20px 12px 0;
}
.account-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 11px;
    background: var(--account-card);
    box-shadow: 0 8px 24px rgba(31, 24, 72, .08);
}

.account-brand {
    min-height: 34px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #174f4c;
    font-size: 1.18rem;
    font-weight: 600;
}
.account-brand img { width: 34px; height: 34px; }
.account-title { margin: 0 0 6px; font-size: 1.05rem; font-weight: 600; }
.account-description { margin: 0 0 20px; color: var(--account-muted); font-size: .9rem; line-height: 1.55; }
.account-field { margin-bottom: 14px; }
.account-field label { display: block; margin-bottom: 6px; font-size: .94rem; }

.account-input {
    width: 100%;
    height: 51px;
    padding: 0 20px;
    color: var(--account-ink);
    font: inherit;
    font-size: .9rem;
    border: 1px solid var(--account-border);
    border-radius: 11px;
    background: #fff;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}
.account-input:focus { border-color: var(--account-ink); box-shadow: 0 0 0 3px rgba(33, 24, 79, .1); }
.account-input:disabled { color: var(--account-muted); background: #f5f5f7; }
.account-input::placeholder { color: #b7b7bc; }

.account-options {
    margin: 15px 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--account-muted);
    font-size: .88rem;
}
.account-check { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.account-check input { width: 14px; height: 14px; accent-color: var(--account-ink); }
.account-link { color: var(--account-ink); font-weight: 600; text-decoration: none; }
.account-link:hover { text-decoration: underline; }

.account-button {
    width: calc(100% + 24px);
    height: 49px;
    margin: 0 -12px;
    color: #fff;
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    border: 0;
    border-radius: 9px;
    background: var(--account-ink);
    cursor: pointer;
    transition: transform .15s, background-color .15s;
}
.account-button:hover { background: #30246c; }
.account-button:active { transform: translateY(1px); }
.account-actions { margin: 20px 0 4px; text-align: center; font-size: .88rem; }
.account-card:has(.account-actions:last-child) { padding-bottom: 20px; }

.validation-summary-valid, .field-validation-valid { display: none; }
.validation-summary-errors { margin-bottom: 14px; color: var(--account-danger); font-size: .82rem; }
.validation-summary-errors ul { margin: 0; padding-left: 20px; }
.field-validation-error { display: block; margin-top: 5px; color: var(--account-danger); font-size: .76rem; }
.input-validation-error { border-color: var(--account-danger); }
.account-message { text-align: center; }
.account-message-icon { margin: 2px auto 16px; color: var(--account-ink); font-size: 2rem; line-height: 1; }
.account-message .account-title { font-size: 1.15rem; }
.account-footer { align-self: end; text-align: center; color: #66666c; font-size: .85rem; }

@media (max-width: 520px) {
    body.account-page { background: linear-gradient(145deg, #fff 0%, #f5f5f8 70%, #dedde5 100%); }
    .account-shell { padding: 34px 18px 22px; }
    .account-card { margin-top: 48px; }
    .account-options { align-items: flex-start; flex-direction: column; margin-bottom: 24px; }
}

@media (max-height: 720px) and (min-width: 521px) {
    .account-shell { padding-top: 35px; }
    .account-card { margin-top: 35px; }
}
