.account-page,
.account-page * {
    box-sizing: border-box;
}

body {
    background: #f7f7f7;
}

.header-section {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
}

.header-section .logo a,
.header-section .user-access a {
    color: #171717;
}

.header-section .main-menu a {
    color: #333;
}

.account-page {
    width: min(100% - 40px, 1120px);
    max-width: 1120px;
    padding: 64px 0 88px;
    margin: 0 auto;
}

.account-page > h1 {
    margin-bottom: 10px;
    color: #141414;
    font-size: clamp(32px, 5vw, 46px);
    font-weight: 600;
    letter-spacing: -1.5px;
}

.account-page > p:not(.account-message) {
    color: #666;
    font-size: 15px;
}

.account-message {
    min-height: 0;
    margin: 20px 0 0;
    padding: 0;
    color: #a52828;
    font-size: 14px;
}

.account-message:not(:empty) {
    padding: 12px 16px;
    border: 1px solid #f0caca;
    border-radius: 6px;
    background: #fff5f5;
}

.account-message.is-success {
    color: #176b36;
    border-color: #b7dec3;
    background: #f0fff4;
}

.account-switch {
    display: flex;
    width: min(100%, 560px);
    margin: 28px auto 0;
    padding: 5px;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    background: #ededed;
}

.account-tab {
    flex: 1;
    min-height: 44px;
    padding: 8px 14px;
    border: 0;
    border-radius: 5px;
    color: #555;
    background: transparent;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.account-tab.is-active {
    color: #171717;
    background: #fff;
    box-shadow: 0 1px 5px rgb(0 0 0 / 10%);
}

.account-panel[hidden] {
    display: none;
}

.account-card {
    display: flex;
    width: min(100%, 560px);
    flex-direction: column;
    margin: 16px auto 0;
    padding: clamp(24px, 5vw, 44px);
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 36px rgb(0 0 0 / 6%);
}

.account-card h2 {
    margin-bottom: 8px;
    color: #171717;
    font-size: 26px;
    font-weight: 600;
}

.account-card-copy {
    margin-bottom: 24px;
    color: #666;
    font-size: 14px;
}

.account-card label {
    display: block;
    margin: 0 0 8px;
    color: #292929;
    font-size: 14px;
    font-weight: 500;
}

.account-card input {
    width: 100%;
    height: 48px;
    margin-bottom: 20px;
    padding: 0 14px;
    border: 1px solid #d5d5d5;
    border-radius: 5px;
    background: #fff;
    color: #171717;
    font: inherit;
}

.account-card input:focus {
    border-color: #222;
    box-shadow: 0 0 0 3px rgb(20 20 20 / 10%);
}

.account-card button {
    align-self: flex-start;
    min-height: 48px;
    margin-top: 4px;
    padding: 0 24px;
    border: 1px solid #171717;
    border-radius: 5px;
    color: #fff;
    background: #171717;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.account-card button:hover {
    color: #171717;
    background: #fff;
}

.account-card button:disabled {
    opacity: 0.6;
    cursor: wait;
}

@media (max-width: 600px) {
    .account-page {
        width: min(100% - 32px, 520px);
        padding-top: 40px;
    }

    .account-switch {
        margin-top: 20px;
    }
}
