/* Account pages: login, registration, password reset, panel.
   Rules of the old theme (css/pages.css "body.hn-auth", css/main.css h1) in their original order. */

/* css/pages.css: body.hn-page, the background of every page of the new theme (the account pages had no other). */
body.page-account {
    background: var(--bg);
}

.page-account .auth-wrap {
    box-sizing: border-box;
    padding: 48px 32px 72px;
}

.page-account .auth-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow-card);
    max-width: 460px;
    margin: 0 auto;
    padding: 30px 32px 26px;
    box-sizing: border-box;
}

.page-account .auth-kicker {
    display: block;
    color: var(--red);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* main.css gave every h1 border-box sizing; the rest of that rule is overridden below. */
.page-account .auth-card h1 {
    box-sizing: border-box;
    display: block;
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 8px;
    padding: 0;
    max-width: none;
    text-align: left;
    text-transform: none;
}

.page-account .auth-lead {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0 0 20px;
}

.page-account .auth-field {
    margin: 0 0 14px;
}

.page-account .auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
    text-align: left;
}

.page-account .auth-card input[type="email"],
.page-account .auth-card input[type="text"],
.page-account .auth-card input[type="tel"],
.page-account .auth-card input[type="number"],
.page-account .auth-card input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    height: 46px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    font-size: 15px;
    padding: 4px 14px;
}

.page-account .auth-card input::placeholder {
    color: var(--muted);
    font-weight: 500;
}

.page-account .auth-card input[type="email"]:focus,
.page-account .auth-card input[type="text"]:focus,
.page-account .auth-card input[type="tel"]:focus,
.page-account .auth-card input[type="number"]:focus,
.page-account .auth-card input[type="password"]:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-soft);
}

.page-account .auth-passwrap {
    position: relative;
    display: block;
}

.page-account .auth-passwrap input {
    padding-right: 48px;
}

.page-account .auth-peek {
    position: absolute;
    top: 50%;
    right: 7px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: none;
    color: var(--muted);
    cursor: pointer;
}

.page-account .auth-peek:hover {
    color: var(--ink);
}

.page-account .auth-peek svg {
    width: 20px;
    height: 20px;
}

.page-account .auth-peek .ico-hide {
    display: none;
}

.page-account .auth-peek.is-on .ico-show {
    display: none;
}

.page-account .auth-peek.is-on .ico-hide {
    display: block;
}

.page-account .auth-card input[type="submit"] {
    width: 100%;
    border: 0;
    border-radius: var(--radius);
    background: var(--red);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 13px 16px;
    margin-top: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.page-account .auth-card input[type="submit"]:hover {
    background: var(--red-dark);
}

.page-account .auth-reqs {
    margin: 0 0 14px;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: left;
}

.page-account .auth-reqs > span {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink);
}

.page-account .auth-reqs ul {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}

.page-account .auth-reqs li {
    position: relative;
    padding-left: 22px;
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--muted);
}

.page-account .auth-reqs li::before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: 800;
    color: #c2c4bf;
}

.page-account .auth-reqs li.is-ok {
    color: var(--ink);
}

.page-account .auth-reqs li.is-ok::before {
    color: #1a7f4b;
}

.page-account .auth-reqs.is-error li:not(.is-ok) {
    color: var(--red-dark);
}

.page-account .auth-reqs.is-error li:not(.is-ok)::before {
    content: "✕";
    color: var(--red);
}

.page-account .auth-links {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}

.page-account .auth-links p {
    margin: 8px 0 0;
    color: var(--muted);
}

.page-account .auth-links a {
    color: var(--red);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.page-account .auth-links a:hover {
    color: var(--red-dark);
    text-decoration: underline;
}

.page-account .auth-legal {
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--muted);
    text-align: center;
}

.page-account .auth-legal a {
    color: var(--muted);
    text-decoration: underline;
}

.page-account .auth-legal a:hover {
    color: var(--red);
}

.page-account .auth-card .error,
.page-account .auth-card .success {
    border-radius: var(--radius);
    padding: 12px 14px;
    margin: 0 0 16px;
    font-size: 13.5px;
    font-weight: 600;
    text-align: left;
}

.page-account .auth-card .error {
    border: 1px solid rgba(232, 19, 47, 0.35);
    background: var(--red-soft);
    color: var(--red-dark);
}

.page-account .auth-card .success {
    border: 1px solid rgba(26, 127, 75, 0.35);
    background: rgba(26, 127, 75, 0.09);
    color: #1a7f4b;
}

.page-account .auth-card .success a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

.page-account .auth-card textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    padding: 11px 13px;
    resize: vertical;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.page-account .auth-card textarea:focus {
    outline: 0;
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-soft);
}

.page-account .auth-section {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

/* main.css made every h2 an inline-block, and this rule did not change it. */
.page-account .auth-section h2 {
    display: inline-block;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-transform: none;
    text-align: left;
    margin: 0 0 6px;
    padding: 0;
    max-width: none;
}

.page-account .auth-section-lead {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0 0 14px;
}

.page-account .auth-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ink);
    cursor: pointer;
}

.page-account .auth-consent a {
    color: var(--red);
    font-weight: 600;
    text-decoration: underline;
}

.page-account .auth-consent a:hover {
    color: var(--red-dark);
}

.page-account .auth-consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: var(--red);
    cursor: pointer;
}

.page-account .auth-info {
    border: 1px solid var(--line);
    background: var(--bg);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin: 0 0 14px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ink);
}

.page-account .auth-small {
    font-size: 12px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0 0 12px;
}

@media (max-width: 520px) {
    .page-account .auth-wrap {
        padding: 24px 16px 48px;
    }

    .page-account .auth-card {
        padding: 24px 20px 22px;
    }
}
