* {
    box-sizing: border-box;
}

:root {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif;
    color: #172033;
    background: #f4f7fb;
}

body {
    min-height: 100vh;
    margin: 0;

    background-image: url("background.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    border: 0;
    border-radius: 9px;

    background: transparent;
    color: #687287;

    cursor: pointer;
}

.password-toggle:hover {
    background: #f0f2ff;
    color: #596dff;
}

.password-toggle svg {
    width: 21px;
    height: 21px;
}

.eye-hide {
    display: none;
}
.obsolete {
    color: #f5f8fc;
    display: none;
    font-size: 7px;
}

.page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 32px 18px;

    background: rgba(245, 247, 251, 0.35);
}

.card {
    width: min(460px, 100%);
    padding: 20px; /**/
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 24px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 24px 70px rgba(25, 35, 65, .12);
    backdrop-filter: blur(14px);
}

.form-card {
    width: min(500px, 100%);
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: .02em;
    margin-bottom: 34px;
}

.brand-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #596dff;
    box-shadow: 0 0 0 5px rgba(89,109,255,.12);
}

h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 6vw, 40px);
    letter-spacing: -.035em;
}

.subtitle {
    margin: 0 0 30px;
    color: #687287;
    line-height: 1.6;
}

.actions {
    display: grid;
    gap: 12px;
}

.btn {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid #dfe4ee;
    border-radius: 13px;
    background: #fff;
    color: #20283a;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.btn:hover {
    transform: translateY(-2px);
    border-color: #cbd2e2;
    box-shadow: 0 10px 25px rgba(35, 45, 75, .09);
}

.btn-primary {
    border-color: #596dff;
    background: #596dff;
    color: #fff;
    box-shadow: 0 10px 24px rgba(89,109,255,.22);
}

.already {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid #dfe4ee;
    border-radius: 13px;
    background: #fff;
    color: #20283a;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

form {
    display: grid;
    gap: 10px;
}

label {
    margin-top: 7px;
    font-size: 14px;
    font-weight: 700;
}

input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid #dce2ec;
    border-radius: 11px;
    outline: none;
    background: #fbfcfe;
    color: #172033;
    font: inherit;
    transition: border-color .15s, box-shadow .15s;
}

input:focus {
    border-color: #596dff;
    box-shadow: 0 0 0 4px rgba(89,109,255,.11);
    background: #fff;
}

.code-input {
    letter-spacing: .3em;
    text-align: center;
    font-weight: 750;
    font-size: 18px;
}

small {
    margin-top: -3px;
    color: #7b8497;
}

.back {
    display: inline-block;
    margin-bottom: 24px;
    color: #667085;
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
}

.back:hover,
.form-links a:hover {
    color: #596dff;
}

.notice {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.45;
}

.notice.error {
    background: #fff0f0;
    color: #b42318;
    border: 1px solid #ffd3d0;
}

.notice.warning {
    background: #fffff0;
    color: #b47618;
    border: 1px solid #ffefd0;
}

.notice.success {
    background: #ecfdf3;
    color: #067647;
    border: 1px solid #c6f0d8;
}

.form-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 24px;
    font-size: 14px;
}

.form-links a {
    color: #596dff;
    text-decoration: none;
    font-weight: 650;
}

.account-card {
    width: min(480px, 100%);
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 25px;
}

.account-header .brand {
    margin-bottom: 22px;
}

.logout-link {
    color: #687287;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.logout-link:hover {
    color: #596dff;
}

.profile-box {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 17px;
    margin-bottom: 16px;

    border: 1px solid #e3e7ef;
    border-radius: 15px;

    background: #f8faff;
}

.avatar {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #596dff;
    color: white;

    font-size: 19px;
    font-weight: 800;
}

.profile-label {
    color: #7b8497;
    font-size: 12px;
    margin-bottom: 3px;
}

.vip-card {
    display: flex;
    align-items: center;
    gap: 18px;

    padding: 24px;

    margin-bottom: 18px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #596dff,
            #745cff
        );

    color: white;

    box-shadow:
        0 14px 30px rgba(89, 109, 255, .22);
}

.vip-icon {
    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: rgba(255,255,255,.16);

    font-size: 28px;
}

.vip-label {
    font-size: 17px;
    opacity: .85;

    margin-bottom: 3px;
}

.vip-points {
    font-size: 30px;
    line-height: 1;

    font-weight: 800;
    letter-spacing: -.03em;
}

.account-actions {
    display: grid;
    gap: 10px;
}

.purchase-card {
    padding: 22px;

    margin-bottom: 18px;

    border: 1px solid #e1e5ed;
    border-radius: 16px;

    background: #fff;
}

.purchase-card h2 {
    margin: 0 0 7px;

    font-size: 20px;
    letter-spacing: -.02em;
}

.purchase-card p {
    margin: 0 0 20px;

    color: #7b8497;

    font-size: 14px;
    line-height: 1.5;
}

.purchase-card form {
    display: grid;
    gap: 10px;
}

.purchase-card input {
    height: 52px;
}

.account-action {
    min-height: 70px;

    display: grid;
    grid-template-columns: 42px 1fr 25px;
    align-items: center;

    gap: 12px;

    padding: 13px 15px;

    border: 1px solid #e1e5ed;
    border-radius: 14px;

    background: #fff;

    color: #172033;
    text-decoration: none;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.account-action:hover {
    transform: translateY(-2px);

    border-color: #cbd2e2;

    box-shadow:
        0 9px 25px rgba(35, 45, 75, .08);
}

.action-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #f0f2ff;

    font-size: 18px;
}

.account-action strong {
    display: block;

    font-size: 14px;
    margin-bottom: 3px;
}

.account-action small {
    display: block;

    color: #7b8497;
    font-size: 12px;
}

.arrow {
    color: #8a93a5;
    font-size: 20px;
}

.account-footer {
    margin-top: 24px;

    text-align: center;

    font-size: 14px;
}

.account-footer a {
    color: #596dff;
    text-decoration: none;
    font-weight: 650;
}

@media (max-width: 520px) {

    .account-header {
        flex-direction: column;
    }

    .logout-link {
        margin-top: -10px;
    }

    .vip-card {
        padding: 20px;
    }

    .vip-points {
        font-size: 30px;
    }

    .purchase-card {
        padding: 18px;
    }
}

/* Service unavailable page */

.unavailable-card {
    width: min(500px, 100%);
    text-align: center;
}

.unavailable-card .brand {
    justify-content: center;
    margin-bottom: 28px;
}

.status-icon {
    width: 72px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 25px;

    border-radius: 20px;

    background: #fff4e8;
    color: #d97706;
}

.status-icon svg {
    width: 38px;
    height: 38px;
}

.unavailable-card h1 {
    font-size: clamp(28px, 6vw, 36px);
    line-height: 1.15;
    margin-bottom: 14px;
}

.unavailable-card .subtitle {
    margin-bottom: 22px;
}

.status-message {
    padding: 16px 18px;
    margin-bottom: 18px;

    border: 1px solid #e8e2d9;
    border-radius: 14px;

    background: #faf9f7;

    text-align: left;
}

.status-message-title {
    margin-bottom: 5px;

    color: #343b4d;

    font-size: 14px;
    font-weight: 750;
}

.status-message-text {
    color: #7b8497;

    font-size: 13px;
    line-height: 1.5;
}

.unavailable-card .btn {
    margin-top: 2px;
}

.unavailable-card .account-footer {
    margin-top: 20px;

    color: #8a93a5;
    font-size: 13px;
}

