@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700 900;
    font-display: swap;
}

:root {
    color-scheme: dark;
    font-family: "Vazirmatn", Tahoma, sans-serif;
    background: #061425;
    color: #edf5ff;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    font-family: "Vazirmatn", Tahoma, sans-serif;
    background:
        radial-gradient(ellipse at 50% 8%, rgba(34, 106, 164, .2), transparent 40%),
        linear-gradient(145deg, #061425 10%, #0a1d33 52%, #07152a 100%);
}

button, input { font: inherit; }
a { color: inherit; text-decoration: none; }

.account-orb {
    position: fixed;
    z-index: -1;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .35;
    pointer-events: none;
}
.account-orb-one { top: 12%; right: -150px; background: #147cb8; }
.account-orb-two { bottom: -100px; left: -120px; background: #3152a0; }

.account-header {
    width: min(1120px, calc(100% - 40px));
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.account-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; }
.brand-symbol {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(112, 208, 255, .42);
    border-radius: 12px;
    color: #80dcff;
    background: rgba(38, 115, 165, .2);
    box-shadow: 0 0 24px rgba(72, 184, 245, .16);
}
.brand-accent { color: #65c9ff; }
.back-link { color: #aec7df; font-size: 13px; transition: color .2s ease; }
.back-link:hover { color: #7cd8ff; }
.back-link span { margin-inline-start: 5px; }

.account-main {
    width: min(100% - 32px, 500px);
    min-height: calc(100vh - 82px);
    margin: 0 auto;
    padding: 24px 0 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.account-card {
    padding: clamp(26px, 6vw, 42px);
    border: 1px solid rgba(151, 190, 226, .18);
    border-radius: 24px;
    background: linear-gradient(155deg, rgba(18, 39, 63, .96), rgba(9, 25, 44, .97));
    box-shadow: 0 28px 80px rgba(0, 5, 15, .36), inset 0 1px rgba(255,255,255,.04);
    backdrop-filter: blur(16px);
}
.account-card-heading { text-align: center; }
.account-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 15px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(101, 201, 255, .34);
    border-radius: 18px;
    color: #78d5ff;
    background: linear-gradient(140deg, rgba(18, 113, 166, .26), rgba(54, 73, 156, .28));
    font-size: 30px;
}
.eyebrow { margin: 0 0 4px; color: #87cee9; font-size: 12px; font-weight: 700; }
h1 { margin: 0; color: #f2f7fc; font-size: clamp(23px, 5vw, 29px); font-weight: 700; }
.intro { margin: 8px 0 22px; color: #a9bed2; font-size: 13px; line-height: 1.9; }

.mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    padding: 5px;
    margin-bottom: 20px;
    border: 1px solid rgba(146, 179, 211, .12);
    border-radius: 14px;
    background: rgba(4, 16, 30, .54);
}
.mode-tabs a {
    min-height: 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #aebfd0;
    font-size: 14px;
    font-weight: 700;
    transition: background .2s ease, color .2s ease;
}
.mode-tabs a:hover { color: #fff; background: rgba(65, 112, 159, .22); }
.mode-tabs a.selected { color: #fff; background: linear-gradient(110deg, #176f9f, #3555a1); box-shadow: 0 5px 16px rgba(0,0,0,.2); }

.account-form { display: grid; gap: 9px; }
.account-form label { margin-top: 4px; color: #d1deeb; font-size: 13px; font-weight: 700; }
.account-form input {
    width: 100%;
    min-height: 49px;
    padding: 10px 13px;
    border: 1px solid rgba(132, 174, 210, .25);
    border-radius: 12px;
    outline: none;
    color: #f3f8fd;
    background: rgba(3, 14, 28, .62);
    text-align: left;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.account-form input:focus { border-color: #64c8f6; box-shadow: 0 0 0 3px rgba(69, 173, 232, .14); }
.form-hint, .privacy-note { color: #8fa8bf; font-size: 12px; line-height: 1.8; }
.form-hint { margin: 0; }
.primary-button {
    min-height: 50px;
    margin-top: 9px;
    border: 1px solid rgba(115, 205, 255, .35);
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(105deg, #167eb5, #3557b1);
    box-shadow: 0 12px 25px rgba(11, 59, 111, .24);
    cursor: pointer;
    font-weight: 700;
    transition: transform .18s ease, filter .18s ease;
}
.primary-button:hover { transform: translateY(-1px); filter: brightness(1.09); }
.primary-button:focus-visible, .mode-tabs a:focus-visible, .back-link:focus-visible { outline: 2px solid #89ddff; outline-offset: 3px; }
.privacy-note { margin: 18px 0 0; text-align: center; }
.message { margin: 0 0 15px; padding: 11px 13px; border: 1px solid transparent; border-radius: 12px; font-size: 13px; line-height: 1.8; }
.message-success { border-color: rgba(80, 190, 150, .25); color: #b9f2dc; background: rgba(18, 118, 82, .18); }
.message-error { border-color: rgba(255, 117, 117, .28); color: #ffd0d0; background: rgba(142, 45, 53, .2); }
.user-summary { display: flex; align-items: center; gap: 13px; padding: 16px; border: 1px solid rgba(126, 174, 211, .2); border-radius: 15px; background: rgba(5, 16, 29, .46); }
.user-avatar { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; color: #e4f7ff; background: linear-gradient(140deg, #197fae, #4b59a7); font-size: 20px; font-weight: 700; }
.user-summary div { min-width: 0; display: grid; gap: 3px; }
.user-summary strong { overflow-wrap: anywhere; color: #f0f6fc; font-size: 13px; direction: ltr; text-align: right; }
.user-summary span:last-child { color: #90abc2; font-size: 12px; }
.account-footer { margin: 17px 0 0; color: #70879d; font-size: 12px; text-align: center; }

@media (max-width: 480px) {
    .account-header { width: calc(100% - 28px); min-height: 70px; }
    .account-main { min-height: calc(100vh - 70px); width: calc(100% - 24px); padding-top: 15px; }
    .account-card { padding: 25px 20px; border-radius: 20px; }
    .account-brand { font-size: 19px; }
}
