body.account-page {
    min-height: 100svh;
    height: auto;
    color: #f4f5f6;
    background: linear-gradient(#000810db, #00050af2), url('./img/bg.jpg') center / cover fixed;
}

.account-shell {
    width: min(100%, 1000px);
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 72px;
}

.account-logo {
    display: block;
    width: 110px;
    height: auto;
}

.account-header a,
.account-card a,
.account-back {
    color: inherit;
}

.account-back {
    font-size: 0.85rem;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.account-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #aab5bc;
    margin-bottom: 20px;
}

.account-page h1 {
    font-size: clamp(2rem, 6vw, 3.4rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.account-intro {
    margin: 20px 0 40px;
    color: #b8c1c8;
    max-width: 560px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.account-card {
    min-width: 0;
    padding: 28px;
    border: 1px solid #ffffff26;
    border-radius: 20px;
    background: #0b131bdb;
    box-shadow: -3px 0 0 #05ff0026, 3px 0 0 #eb0c0c26;
}

.account-card h2 {
    margin: 0 0 20px;
    font-size: 1.2rem;
}

.account-card p {
    color: #b8c1c8;
    line-height: 1.65;
    font-size: 0.9rem;
}

.account-details dt {
    margin-top: 20px;
    color: #98a5ae;
    font-size: 0.75rem;
}

.account-details dd {
    margin-top: 8px;
    overflow-wrap: anywhere;
    line-height: 1.5;
}

.account-links {
    list-style: none;
}

.account-links li + li {
    margin-top: 20px;
}

.account-links a {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.account-logout {
    margin-top: 32px;
}

.account-logout button {
    width: auto;
    margin: 0;
    padding: 12px 28px;
    border: 1px solid #ffffff40;
    background: #101a23;
    font-size: 0.9rem;
}

.account-error {
    color: #ffb3b3;
    margin-bottom: 24px;
    line-height: 1.6;
}

a.project-card {
    display: block;
    color: inherit;
    transition: border-color 180ms, background 180ms;
}

.project-card:hover {
    background: #12212f;
    border-color: #ffffff66;
}

.project-card h2::after {
    content: ' ↗';
    color: #91a5b5;
}

.account-page a:focus-visible,
.account-page button:focus-visible {
    outline: 3px solid #8bff9a;
    outline-offset: 5px;
}

.registration-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: start;
    gap: 28px;
}

.registration-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.registration-puzzle {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.registration-card {
    position: sticky;
    top: 24px;
}

.registration-form label {
    display: block;
    margin-top: 24px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.registration-form input,
.registration-form textarea {
    display: block;
    width: 100%;
    margin: 10px 0;
    border: 1px solid #ffffff50;
    border-radius: 12px;
    background: #03090e;
    color: #fff;
    font: inherit;
    line-height: 1.5;
    padding: 12px 16px;
}

.registration-form textarea {
    resize: vertical;
    min-height: 140px;
    max-height: 500px;
}

.registration-hint,
.account-card p.registration-hint {
    font-size: 0.75rem;
    line-height: 1.6;
    color: #a7b5bf;
    margin-top: 12px;
}

.registration-form .form-status {
    color: #ffb3b3;
    margin-top: 20px;
}

.registration-form button {
    border: 1px solid #ffffff50;
    padding: 12px 16px;
    font-size: 1rem;
    margin-bottom: 0;
}

.registration-form input:focus-visible,
.registration-form textarea:focus-visible {
    outline: 3px solid #8bff9a;
    outline-offset: 3px;
}

.account-answer-card {
    grid-column: 1 / -1;
}

.account-answer {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .account-shell { padding: 24px 20px 40px; }
    .account-header { margin-bottom: 48px; }
    .account-grid { grid-template-columns: 1fr; }
    .account-card { padding: 24px; }
    .registration-layout { grid-template-columns: 1fr; }
    .registration-card { position: static; }
}
