.pb-account-page {
    box-sizing: border-box;
    min-height: 100vh;
    background: #eef3f8;
    color: #172238;
    overflow-x: hidden;
}

.pb-account-page *,
.pb-account-page *::before,
.pb-account-page *::after {
    box-sizing: border-box;
}

.pb-account-main {
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: clamp(18px, 3vw, 36px);
}

.pb-account-notice {
    width: min(980px, 100%);
    margin: 0 auto 18px;
    border: 1px solid rgba(49, 91, 139, 0.22);
    border-radius: 18px;
    background: #fff;
    padding: 14px 16px;
    box-shadow: 0 16px 34px rgba(25, 47, 76, 0.08);
    font-weight: 700;
}

.pb-account-login {
    display: grid;
    place-items: center;
    min-height: clamp(440px, 70vh, 720px);
}

.pb-account-login-card,
.pb-account-hero,
.pb-account-card-section {
    border: 1px solid rgba(57, 82, 113, 0.14);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 22px 60px rgba(23, 34, 56, 0.12);
}

.pb-account-login-card {
    width: min(760px, 100%);
    padding: clamp(28px, 5vw, 54px);
    text-align: center;
}

.pb-account-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    background: rgba(44, 92, 144, 0.1);
    color: #244f81;
    padding: 6px 11px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pb-account-login h1,
.pb-account-hero h1,
.pb-account-section-head h2 {
    margin: 12px 0 10px;
    color: #121c2e;
    line-height: 1.05;
}

.pb-account-login h1 {
    font-size: clamp(2rem, 5vw, 4rem);
}

.pb-account-hero h1 {
    max-width: 760px;
    font-size: clamp(2.2rem, 4.6vw, 4.7rem);
}

.pb-account-login p,
.pb-account-hero p,
.pb-account-section-head p,
.pb-account-route-card p {
    color: #516176;
    line-height: 1.65;
}

.pb-account-login-form {
    display: grid;
    gap: 14px;
    width: min(520px, 100%);
    margin: 26px auto 0;
    text-align: left;
}

.pb-account-login-field {
    display: grid;
    gap: 7px;
    color: #243147;
    font-weight: 850;
}

.pb-account-login-field > span:first-child,
.pb-account-login-row,
.pb-account-login-links {
    font-size: 0.88rem;
}

.pb-account-login-field input[type="text"],
.pb-account-login-field input[type="password"] {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(47, 89, 137, 0.22);
    border-radius: 16px;
    background: #fff;
    color: #172238;
    padding: 12px 14px;
    font: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 18px rgba(23, 34, 56, 0.06);
}

.pb-account-login-field input:focus {
    outline: 3px solid rgba(38, 111, 235, 0.18);
    border-color: rgba(38, 111, 235, 0.58);
}

.pb-account-password-wrap {
    position: relative;
    display: block;
}

.pb-account-password-wrap input {
    padding-right: 88px;
}

.pb-account-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    min-width: 68px;
    min-height: 34px;
    border: 1px solid rgba(47, 89, 137, 0.18);
    border-radius: 999px;
    background: #eef5ff;
    color: #244f81;
    font-weight: 850;
    transform: translateY(-50%);
    cursor: pointer;
}

.pb-account-login-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    color: #516176;
}

.pb-account-remember {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-weight: 750;
}

.pb-account-remember input {
    width: 18px;
    height: 18px;
    accent-color: #2a5a91;
}

.pb-account-login-row a,
.pb-account-login-links a {
    color: #1d5fae;
    font-weight: 850;
}

.pb-account-login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    border: 1px solid #2a5a91;
    border-radius: 18px;
    background: #2a5a91;
    color: #fff;
    padding: 12px 18px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pb-account-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(31, 55, 87, 0.15);
}

.pb-account-login-error {
    width: min(520px, 100%);
    margin: 18px auto 0;
    border: 1px solid rgba(150, 45, 45, 0.22);
    border-radius: 16px;
    background: #fff3f3;
    color: #7a1f1f;
    padding: 12px 14px;
    text-align: left;
    font-weight: 800;
}

.pb-account-login-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    color: #66758b;
}

.pb-account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.pb-account-login .pb-account-actions {
    justify-content: center;
}

.pb-account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid rgba(47, 89, 137, 0.2);
    border-radius: 999px;
    background: #fff;
    color: #1b3658;
    padding: 10px 18px;
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pb-account-button:hover,
.pb-account-route-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(31, 55, 87, 0.15);
}

.pb-account-button--primary {
    border-color: #2a5a91;
    background: #2a5a91;
    color: #fff;
}

.pb-account-button--ghost {
    background: transparent;
}

.pb-account-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: clamp(20px, 4vw, 42px);
    align-items: center;
    padding: clamp(24px, 4vw, 52px);
}

.pb-account-hero-card {
    border: 1px solid rgba(46, 78, 117, 0.12);
    border-radius: 24px;
    background: linear-gradient(180deg, #f9fbfd 0%, #eef4fa 100%);
    padding: 24px;
    text-align: center;
}

.pb-account-avatar {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    margin: 0 auto 12px;
    overflow: hidden;
    border-radius: 28px;
    background: #254c78;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 900;
}

.pb-account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pb-account-hero-card strong {
    display: block;
    font-size: 1.2rem;
}

.pb-account-hero-card > span {
    display: block;
    margin-top: 3px;
    color: #5a6880;
    font-weight: 700;
}

.pb-account-stat-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 18px 0 0;
}

.pb-account-stat-list div {
    border-radius: 18px;
    background: #fff;
    padding: 12px 8px;
}

.pb-account-stat-list dt {
    color: #6f7b8c;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.pb-account-stat-list dd {
    margin: 4px 0 0;
    color: #172238;
    font-size: 1.35rem;
    font-weight: 900;
}

.pb-account-card-section {
    margin-top: 24px;
    padding: clamp(22px, 3vw, 36px);
}

.pb-account-section-head {
    display: grid;
    gap: 6px;
    max-width: 780px;
    margin-bottom: 20px;
}

.pb-account-section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.55rem);
}

.pb-account-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}

.pb-account-route-card {
    min-height: 210px;
    border: 1px solid rgba(49, 79, 116, 0.14);
    border-radius: 24px;
    background: #fff;
    padding: 20px;
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pb-account-route-card--primary {
    border-color: rgba(42, 90, 145, 0.5);
    background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
}

.pb-account-route-card--locked {
    opacity: 0.58;
    cursor: not-allowed;
}

.pb-account-route-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #edf4fb;
    color: #234b78;
    font-size: 1.35rem;
    font-weight: 900;
}

.pb-account-route-card strong {
    display: block;
    margin-top: 14px;
    color: #162235;
    font-size: 1.12rem;
}

.pb-account-route-card em {
    display: inline-flex;
    width: fit-content;
    margin-top: 10px;
    border-radius: 999px;
    background: rgba(35, 75, 120, 0.08);
    color: #2c557f;
    padding: 5px 9px;
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 800;
}

@media (max-width: 900px) {
    .pb-account-hero {
        grid-template-columns: 1fr;
    }

    .pb-account-hero-card {
        text-align: left;
    }

    .pb-account-avatar {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .pb-account-main {
        padding: 14px;
    }

    .pb-account-actions,
    .pb-account-button {
        width: 100%;
    }

    .pb-account-login-card {
        border-radius: 22px;
        padding: 24px 16px;
    }

    .pb-account-login-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .pb-account-stat-list {
        grid-template-columns: 1fr;
    }

    .pb-account-route-card {
        min-height: 0;
    }
}
