:root {
    --g-auth-navy: #063f68;
    --g-auth-navy-dark: #042f50;
    --g-auth-cyan: #08abb5;
    --g-auth-cyan-dark: #07879a;
    --g-auth-cyan-soft: #eaf8fa;
    --g-auth-gold: #e6aa2d;
    --g-auth-red: #cc4357;
    --g-auth-ink: #0c3557;
    --g-auth-muted: #748a9b;
    --g-auth-border: #d9e7ef;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.g-auth-body {
    margin: 0;
    color: var(--g-auth-ink);
    background:
        radial-gradient(circle at 0 100%, transparent 0 128px, rgba(7, 63, 104, 0.055) 129px 180px, transparent 181px),
        radial-gradient(circle at 100% 0, transparent 0 164px, rgba(8, 171, 181, 0.055) 165px 220px, transparent 221px),
        linear-gradient(135deg, #f2f8fa 0%, #edf5f8 48%, #f6fafb 100%);
    font-family: "Vazirmatn", Tahoma, sans-serif;
    direction: rtl;
}

.g-auth-main {
    min-height: 100vh;
}

.g-auth-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 26px;
}

.g-auth-page,
.g-auth-page * {
    box-sizing: border-box;
}

.g-auth-page a {
    text-decoration: none;
}

.g-auth-page button,
.g-auth-page input {
    font: inherit;
}

.g-auth-page-inner {
    width: min(100%, 1120px);
}

.g-auth-back-link {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 7px;
    margin: 0 2px 14px 0;
    color: #57758c;
    font-size: 0.71rem;
    font-weight: 700;
    transition: color 0.18s ease;
}

.g-auth-back-link:hover {
    color: var(--g-auth-cyan-dark);
}

.g-auth-shell {
    display: grid;
    width: 100%;
    min-height: 670px;
    grid-template-columns: minmax(430px, 48%) minmax(500px, 52%);
    overflow: hidden;
    border: 1px solid rgba(199, 219, 229, 0.95);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 26px 65px rgba(8, 55, 86, 0.14);
    direction: ltr;
}

.g-auth-brand-panel,
.g-auth-form-panel {
    direction: rtl;
}

.g-auth-brand-panel {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 48px 60px 34px;
    color: #ffffff;
    background:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(150deg, #064c73 0%, #073b61 58%, #052f50 100%);
    background-size: 46px 46px, 46px 46px, auto;
}

.g-auth-brand-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.g-auth-brand-orbit.orbit-one {
    top: -90px;
    left: -180px;
    width: 390px;
    height: 390px;
}

.g-auth-brand-orbit.orbit-two {
    right: -150px;
    bottom: -230px;
    width: 410px;
    height: 410px;
}

.g-auth-brand-dot {
    position: absolute;
    width: 11px;
    height: 11px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: var(--g-auth-gold);
    box-shadow: 0 0 0 7px rgba(230, 170, 45, 0.11);
}

.g-auth-brand-dot.dot-one {
    top: 180px;
    left: 136px;
}

.g-auth-brand-dot.dot-two {
    right: 52px;
    bottom: 84px;
    background: var(--g-auth-cyan);
    box-shadow: 0 0 0 7px rgba(8, 171, 181, 0.12);
}

.g-auth-brand-content,
.g-auth-brand-footer {
    position: relative;
    z-index: 1;
}

.g-auth-brand-logo {
    display: flex;
    width: 190px;
    height: 82px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    overflow: hidden;
    padding: 9px 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 27, 48, 0.22);
}

.g-auth-brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.g-auth-brand-eyebrow {
    display: block;
    margin-top: 38px;
    color: #25d1d6;
    font-size: 0.75rem;
    font-weight: 900;
}

.g-auth-brand-content h1 {
    max-width: 420px;
    margin: 15px 0 11px;
    font-size: clamp(1.55rem, 2.5vw, 2.05rem);
    font-weight: 900;
    line-height: 1.6;
}

.g-auth-brand-content > p {
    max-width: 410px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.75rem;
    line-height: 2.05;
}

.g-auth-benefits {
    display: grid;
    gap: 10px;
    margin-top: 31px;
}

.g-auth-benefits article {
    display: flex;
    min-height: 68px;
    align-items: center;
    gap: 12px;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.075);
}

.g-auth-benefits article > span {
    display: grid;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 11px;
    color: #8ff0ed;
    background: rgba(8, 171, 181, 0.16);
    font-size: 0.95rem;
}

.g-auth-benefits article > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.g-auth-benefits strong {
    font-size: 0.72rem;
    font-weight: 900;
}

.g-auth-benefits small {
    color: rgba(255, 255, 255, 0.69);
    font-size: 0.59rem;
}

.g-auth-brand-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 19px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.g-auth-brand-footer span,
.g-auth-brand-footer a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.58rem;
    font-weight: 700;
}

.g-auth-brand-footer a {
    color: #2ed0d3;
}

.g-auth-form-panel {
    display: grid;
    min-width: 0;
    place-items: center;
    padding: 38px 62px;
    background: #ffffff;
}

.g-auth-mobile-logo {
    display: none;
}

.g-auth-form-container {
    width: min(100%, 430px);
}

.g-auth-form-header {
    display: grid;
    grid-template-columns: 46px 1fr;
    column-gap: 12px;
    margin-bottom: 20px;
}

.g-auth-title-icon {
    display: grid;
    width: 46px;
    height: 46px;
    grid-row: 1 / span 2;
    place-items: center;
    border-radius: 13px;
    color: var(--g-auth-cyan-dark);
    background: #e9f6f8;
    font-size: 1.15rem;
}

.g-auth-form-header > div:nth-child(2) {
    min-width: 0;
}

.g-auth-form-header span {
    color: var(--g-auth-cyan-dark);
    font-size: 0.68rem;
    font-weight: 900;
}

.g-auth-form-header h2 {
    margin: 3px 0 0;
    color: var(--g-auth-navy-dark);
    font-size: 1.45rem;
    font-weight: 900;
}

.g-auth-form-header p {
    grid-column: 1 / -1;
    margin: 17px 0 0;
    color: var(--g-auth-muted);
    font-size: 0.67rem;
    line-height: 2;
}

.g-auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 9px;
    padding: 9px 11px;
    border: 1px solid transparent;
    border-radius: 11px;
}

.g-auth-alert > i {
    flex: 0 0 auto;
    margin-top: 2px;
    font-size: 0.86rem;
}

.g-auth-alert > div {
    min-width: 0;
}

.g-auth-alert strong {
    display: block;
    margin-bottom: 2px;
    font-size: 0.62rem;
    font-weight: 900;
}

.g-auth-alert p {
    margin: 0;
    font-size: 0.56rem;
    line-height: 1.75;
}

.g-auth-alert.danger {
    border-color: #f0ccd3;
    color: #a63b4d;
    background: #fff3f5;
}

.g-auth-alert.warning {
    border-color: #f1dfb8;
    color: #8a6418;
    background: #fff9ea;
}

.g-auth-alert.info {
    border-color: #cce5ec;
    color: #146b7b;
    background: #eff9fb;
}

.g-auth-form {
    display: grid;
    gap: 13px;
}

.g-auth-validation-summary:empty,
.g-auth-validation-summary.validation-summary-valid {
    display: none;
}

.g-auth-validation-summary {
    padding: 9px 11px;
    border: 1px solid #f0ccd3;
    border-radius: 11px;
    color: #a63b4d;
    background: #fff3f5;
    font-size: 0.56rem;
    line-height: 1.8;
}

.g-auth-validation-summary ul {
    margin: 0;
    padding-right: 16px;
}

.g-auth-field {
    display: grid;
    gap: 6px;
}

.g-auth-field > label,
.g-auth-label-row label {
    color: #183f5b;
    font-size: 0.65rem;
    font-weight: 900;
}

.g-auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.g-auth-label-row > a {
    color: var(--g-auth-cyan-dark);
    font-size: 0.56rem;
    font-weight: 800;
}

.g-auth-input-shell {
    display: flex;
    min-height: 50px;
    align-items: center;
    overflow: hidden;
    border: 1px solid #d4e3eb;
    border-radius: 12px;
    background: #ffffff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.g-auth-input-shell:focus-within,
.g-auth-captcha-input:focus-within {
    border-color: #169ab5;
    box-shadow: 0 0 0 3px rgba(22, 154, 181, 0.1);
}

.g-auth-field.has-error .g-auth-input-shell,
.g-auth-field.has-error .g-auth-captcha-input {
    border-color: #df6576;
    box-shadow: 0 0 0 3px rgba(204, 67, 87, 0.08);
}

.g-auth-input-shell > i {
    display: grid;
    flex: 0 0 auto;
    width: 44px;
    align-self: stretch;
    place-items: center;
    color: #6f8a9d;
    font-size: 0.9rem;
}

.g-auth-input-shell input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0 3px 0 12px;
    border: 0;
    outline: 0;
    color: #153e59;
    background: transparent;
    font-size: 0.67rem;
    font-weight: 700;
}

.g-auth-input-shell input::placeholder,
.g-auth-captcha-input input::placeholder {
    color: #a0b0bc;
    font-weight: 500;
}

.g-auth-password-toggle {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    align-self: stretch;
    place-items: center;
    border: 0;
    color: #78909f;
    background: transparent;
    cursor: pointer;
    font-size: 0.88rem;
}

.g-auth-password-toggle:hover {
    color: var(--g-auth-cyan-dark);
}

.g-auth-field-error {
    display: block;
    color: #b93f52;
    font-size: 0.53rem;
    font-weight: 700;
    line-height: 1.6;
}

.g-auth-field-error:empty,
.g-auth-field-error[hidden] {
    display: none;
}

.g-auth-captcha-row {
    display: grid;
    min-height: 52px;
    grid-template-columns: minmax(0, 1fr) 112px 43px;
    gap: 8px;
}

.g-auth-captcha-input {
    display: flex;
    min-width: 0;
    align-items: center;
    overflow: hidden;
    border: 1px solid #d4e3eb;
    border-radius: 12px;
    background: #ffffff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.g-auth-captcha-input > i {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    align-self: stretch;
    place-items: center;
    color: #78909f;
    font-size: 0.88rem;
}

.g-auth-captcha-input input {
    width: 100%;
    min-width: 0;
    align-self: stretch;
    padding: 0 2px 0 10px;
    border: 0;
    outline: 0;
    color: #153e59;
    background: transparent;
    font-size: 0.68rem;
    font-weight: 800;
}

.g-auth-captcha-image {
    display: grid;
    overflow: hidden;
    place-items: center;
    border: 1px dashed #8bcdd8;
    border-radius: 12px;
    background:
        repeating-linear-gradient(-18deg, #f5fbfc 0 8px, #eaf7f8 9px 11px);
}

.g-auth-captcha-image img {
    display: block;
    width: 100%;
    height: 50px;
    object-fit: contain;
}

.g-auth-captcha-refresh {
    display: grid;
    width: 43px;
    place-items: center;
    border: 1px solid #d4e3eb;
    border-radius: 12px;
    color: #66879b;
    background: #ffffff;
    cursor: pointer;
    transition: 0.18s ease;
}

.g-auth-captcha-refresh:hover {
    color: #ffffff;
    border-color: var(--g-auth-cyan-dark);
    background: var(--g-auth-cyan-dark);
}

.g-auth-remember {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 7px;
    color: #627d8f;
    cursor: pointer;
    font-size: 0.57rem;
    font-weight: 700;
}

.g-auth-remember input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.g-auth-remember > span {
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border: 1px solid #c6d8e2;
    border-radius: 6px;
    color: transparent;
    background: #ffffff;
    transition: 0.17s ease;
}

.g-auth-remember input:checked + span {
    color: #ffffff;
    border-color: var(--g-auth-cyan-dark);
    background: var(--g-auth-cyan-dark);
}

.g-auth-remember input:focus-visible + span {
    outline: 3px solid rgba(22, 154, 181, 0.14);
}

.g-auth-submit {
    display: flex;
    width: 100%;
    min-height: 51px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 17px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(90deg, #08729a 0%, #07537e 48%, #06466f 100%);
    box-shadow: 0 10px 23px rgba(7, 83, 126, 0.21);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 900;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.g-auth-submit:hover {
    box-shadow: 0 13px 28px rgba(7, 83, 126, 0.28);
    transform: translateY(-1px);
}

.g-auth-submit i {
    margin-right: auto;
}

.g-auth-support {
    display: grid;
    min-height: 58px;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    padding: 9px 11px;
    border: 1px solid #dce9ef;
    border-radius: 12px;
    background: #f7fbfc;
}

.g-auth-support > span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 10px;
    color: var(--g-auth-cyan-dark);
    background: #e8f7f8;
    font-size: 0.9rem;
}

.g-auth-support > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.g-auth-support strong {
    color: #183f5b;
    font-size: 0.58rem;
    font-weight: 900;
}

.g-auth-support small {
    color: #7d919f;
    font-size: 0.5rem;
}

.g-auth-support > a {
    padding: 7px 9px;
    border: 1px solid #bcd7e2;
    border-radius: 8px;
    color: #166782;
    background: #ffffff;
    font-size: 0.54rem;
    font-weight: 900;
}

.g-auth-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    color: #8a9ca8;
    font-size: 0.5rem;
}

.g-auth-privacy i {
    color: #6e91a5;
}

.g-auth-copyright {
    margin: 13px 0 0;
    color: #8297a6;
    font-size: 0.55rem;
    text-align: center;
}

@media (max-width: 970px) {
    .g-auth-shell {
        min-height: 650px;
        grid-template-columns: minmax(355px, 45%) minmax(450px, 55%);
    }

    .g-auth-brand-panel {
        padding: 38px 34px 28px;
    }

    .g-auth-form-panel {
        padding: 34px 42px;
    }
}

@media (max-width: 760px) {
    body.g-auth-body {
        background:
            radial-gradient(circle at 50% 0, rgba(8, 171, 181, 0.12), transparent 31%),
            #f0f6f8;
    }

    .g-auth-page {
        display: block;
        padding: 10px;
    }

    .g-auth-page-inner {
        width: min(100%, 500px);
        margin: 0 auto;
    }

    .g-auth-back-link,
    .g-auth-brand-panel,
    .g-auth-copyright {
        display: none;
    }

    .g-auth-shell {
        display: block;
        min-height: calc(100vh - 20px);
        border-radius: 20px;
    }

    .g-auth-form-panel {
        display: block;
        min-height: calc(100vh - 20px);
        padding: 14px 15px 18px;
    }

    .g-auth-mobile-logo {
        display: flex;
        width: 100%;
        min-height: 76px;
        align-items: center;
        justify-content: center;
        margin-bottom: 14px;
        padding: 6px 12px 13px;
        border-bottom: 1px solid #e6eef2;
    }

    .g-auth-mobile-logo img {
        display: block;
        width: min(58%, 205px);
        max-height: 58px;
        object-fit: contain;
    }

    .g-auth-form-container {
        width: 100%;
    }

    .g-auth-form-header {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .g-auth-alert {
        margin-bottom: 10px;
    }

    .g-auth-form {
        gap: 12px;
    }

    .g-auth-input-shell {
        min-height: 51px;
    }

    .g-auth-captcha-row {
        grid-template-columns: minmax(0, 1fr) 108px 43px;
    }

    .g-auth-support {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .g-auth-support > a {
        display: none;
    }

    .g-auth-privacy {
        margin-top: 13px;
    }
}

@media (max-width: 390px) {
    .g-auth-page {
        padding: 0;
    }

    .g-auth-shell,
    .g-auth-form-panel {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .g-auth-captcha-row {
        grid-template-columns: minmax(0, 1fr) 102px 42px;
        gap: 6px;
    }

    .g-auth-mobile-logo img {
        width: min(64%, 195px);
    }
}
