*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: 'Vazirmatn', sans-serif; direction: rtl; }

.site-header{display: none;}

.gigen-wrap {

    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    overflow: hidden;
}

.gigen-auth-card {
    width: min(960px, 100%);
    display: grid;
    grid-template-columns: 520px 1fr;
    align-items: center;
    gap: 58px;
    direction: ltr;
    background: transparent;
    border: 0;
    box-shadow: none;
    animation: gigenFade .35s ease both;
}

.gigen-form-box {
    direction: rtl;
    width: 430px;
    min-height: 424px;
    padding: 47px 38px 55px;
    border-radius: 19px;
    background: rgba(42, 28, 119, 0.92);
    border: 1.5px solid #00aeef;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    position: relative;
    overflow: visible;
}

.gigen-form-box::before,
.gigen-form-box::after {
    content: '';
    position: absolute;
    top: 168px;
    width: 4px;
    height: 138px;
    border-radius: 999px;
    background: #00aeef;
    filter: blur(2px);
    box-shadow: 0 0 12px #00aeef, 0 0 28px #00aeef, 0 0 52px rgba(0, 174, 239, .75);
    pointer-events: none;
}

.gigen-form-box::before { right: -2px; }
.gigen-form-box::after { left: -2px; }

.gigen-side-visual {
    order: -1;
}

.gigen-side-visual::before,
.gigen-side-visual::after { display: none !important; }

.gigen-side-visual img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.gigen-avatar {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    border: 1.5px solid #00aeef;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 13px;
}

.gigen-avatar svg { width: 56px; height: 56px; }
.gigen-avatar svg circle,
.gigen-avatar svg path { stroke: #00aeef; stroke-width: 1.4; }

.gigen-field-s2-group{}
.gigen-field-s2{width: 48%;
    float: right;
    margin: 3px;}
 
.field{}
.gigen-title {
    color: #fff;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 15px;
}

.gigen-step-label {
    color: rgba(255,255,255,.65);
    font-size: 12px;
    margin: -9px 0 0;
}

.gigen-progress {
    width: 100%;
    height: 3px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,.16);
    margin-bottom: 4px;
}

.gigen-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: #00aeef;
}

.gigen-field { width: 100%; position: relative; }

.gigen-field input {
    width: 100%;
    height: 50px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.58);
    background: rgba(255,255,255,.12);
    color: #fff;
    outline: none;
    padding: 0 16px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    text-align: right;
    direction: rtl;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.gigen-field input::placeholder { color: #fff; opacity: .94; }
.gigen-field.has-value input::placeholder { opacity: 0; }
.gigen-field.has-value::before {
    content: attr(data-label);
    position: absolute;
    top: -8px;
    right: 12px;
    z-index: 2;
    padding: 0 7px;
    border-radius: 999px;
    background: #2a1c77;
    color: rgba(255,255,255,.86);
    font-size: 11px;
    line-height: 18px;
    pointer-events: none;
}
.gigen-field.gigen-field-error input {
    border-color: #ff3a5c !important;
    background: rgba(255,58,92,.12);
    box-shadow: 0 0 0 3px rgba(255,58,92,.18), 0 0 16px rgba(255,58,92,.28) !important;
}
.gigen-field.gigen-field-error::before { color: #ffd6de; }
.gigen-field input:focus {
    border-color: #00aeef;
    background: rgba(255,255,255,.16);
    box-shadow: 0 0 0 3px rgba(0,174,239,.12);
}

.gigen-password-field input { padding-left: 54px; }
.gigen-password-toggle {
    position: absolute;
    top: 5px;
    left: 7px;
    z-index: 3;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, .82);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.gigen-password-toggle:hover,
.gigen-password-toggle:focus-visible { background: rgba(255,255,255,.12); color: #fff; outline: none; }
.gigen-password-toggle svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.gigen-password-toggle .gigen-eye-slash { display: none; }
.gigen-password-toggle.is-visible .gigen-eye-slash { display: block; }

.gigen-help-text {
    display: block;
    color: rgba(255,255,255,.72);
    font-size: 11px;
    line-height: 1.8;
    margin: 5px 3px 0;
    text-align: right;
}

.gigen-actions {
    width: 100%;
    display: flex;
    gap: 38px;
    margin-top: 40px;
}
.gigen-actions .gigen-btn-white{color: #000;}
.gigen-btn {
    flex: 1;
    height: 39px;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity .15s ease, transform .15s ease;
}

.gigen-btn:hover { opacity: .92; transform: translateY(-1px); }
.gigen-btn:active { transform: translateY(0); }
.gigen-btn-white { background: #fff; color: #006fc9; }
.gigen-btn-green { background: #46b946; color: #fff; }
.gigen-btn:disabled,
.gigen-btn.is-disabled,
.gigen-btn[aria-disabled="true"] { opacity: .65; cursor: not-allowed; pointer-events: none; transform: none; }

.gigen-error {
    width: 100%;
    color: #fff;
    background: rgba(255, 58, 92, .18);
    border: 1px solid rgba(255, 95, 125, .55);
    border-radius: 8px;
    padding: 9px 12px;
    text-align: center;
    font-size: 13px;
    line-height: 1.8;
}

.btn-loader,
.gigen-btn .btn-loader {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.gigen-btn.is-loading .btn-text { display: none !important; }
.gigen-btn.is-loading .btn-loader { display: inline-flex !important; }
.gigen-btn.is-loading { cursor: wait; pointer-events: none; opacity: .8; }

.gigen-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255,255,255,.45);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: gigenSpin .75s linear infinite;
}

.gigen-form-box.is-submitting input,
.gigen-form-box.is-submitting button:not([aria-busy="true"]),
.gigen-form-box.is-submitting a.gigen-btn { opacity: .72; pointer-events: none; }

.gigen-dashboard-box {
    width: min(720px, 100%);
    padding: 38px;
    border-radius: 19px;
    background: rgba(42, 28, 119, 0.92);
    border: 1.5px solid #00aeef;
    color: #fff;
    position: relative;
}

.gigen-profile-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}
.gigen-profile-item {
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 10px;
    padding: 12px;
    background: rgba(255,255,255,.08);
}
.gigen-profile-item .label { display: block; color: rgba(255,255,255,.65); font-size: 12px; margin-bottom: 5px; }
.gigen-profile-item .value { color: #fff; font-size: 14px; }

@keyframes gigenSpin { to { transform: rotate(360deg); } }
@keyframes gigenFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
    .gigen-auth-card { grid-template-columns: 1fr; gap: 24px; width: min(1000px, 100%); }
    .gigen-side-visual { order: -1; width: 100%; min-height: auto; }
    .gigen-side-visual img { width: min(360px, 100%); }
    .gigen-form-box { width: 100%; min-height: auto; }
}

@media (max-width: 520px) {
    .gigen-wrap { padding: 24px 14px; }
    .gigen-form-box { padding: 34px 18px 38px; border-radius: 16px; }
    .gigen-form-box::before,
    .gigen-form-box::after { top: 150px; height: 100px; }
    .gigen-actions { gap: 12px; margin-top: 24px; }
    .gigen-avatar { width: 88px; height: 88px; }
    .gigen-title { font-size: 24px; }
    .gigen-profile-grid { grid-template-columns: 1fr; }
}

.gigen-success {
    width: 100%;
    color: #fff;
    background: rgba(70, 185, 70, .18);
    border: 1px solid rgba(70, 185, 70, .55);
    border-radius: 8px;
    padding: 9px 12px;
    text-align: center;
    font-size: 13px;
    line-height: 1.8;
    margin-top: 12px;
}

.gigen-edit-profile-box {
    width: min(760px, 100%);
}

.gigen-edit-profile-form {
    width: 100%;
    margin-top: 18px;
}

.gigen-edit-grid::after {
    content: '';
    display: table;
    clear: both;
}

.gigen-field input[readonly] {
    opacity: .76;
    cursor: not-allowed;
    background: rgba(255,255,255,.07);
}

.gigen-empty-profile {
    color: rgba(255,255,255,.82);
    text-align: center;
    line-height: 1.9;
    margin: 22px 0 0;
}

.gigen-edit-actions {
    clear: both;
}

.gigen-dashboard-box.is-submitting input,
.gigen-dashboard-box.is-submitting button:not([aria-busy="true"]),
.gigen-dashboard-box.is-submitting a.gigen-btn {
    opacity: .72;
    pointer-events: none;
}

@media (max-width: 520px) {
    .gigen-edit-profile-box .gigen-field-s2 {
        width: 100%;
        float: none;
        margin: 0 0 8px;
    }
}
.gfs-auth-logo{display:flex;justify-content:center;align-items:center;margin:0 auto 22px}.gfs-auth-logo img{display:block;width:min(240px,72%);height:auto;max-height:92px;object-fit:contain}.gfs-session-message{display:block!important;margin-bottom:18px}.gfs-mobile-change{margin:22px 0;padding:18px;border:1px solid rgba(77,184,255,.35);border-radius:16px;background:rgba(77,184,255,.06)}.gfs-mobile-change p{margin:0 0 14px}.gfs-mobile-change .gigen-password-grid{align-items:center}.gfs-mobile-change [hidden]{display:none!important}.gfs-mobile-change .gigen-success,.gfs-mobile-change .gigen-error{margin-top:12px}

.gigen-auth-links{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:4px;font-size:12px}.gigen-auth-links a{color:rgba(255,255,255,.8);text-decoration:none;transition:color .15s ease}.gigen-auth-links a:hover,.gigen-auth-links a:focus-visible{color:#fff;text-decoration:underline;text-underline-offset:4px}.gfs-parent-register-link{display:inline-flex;align-items:center;gap:5px}.gfs-parent-register-link::before{content:'\2665';color:#71e2bd;font-size:11px}

/* GFS registration launch layout: form left, campaign visual right. */
.gfs-register-layout .gigen-form-box {
    order: 0;
    width: 520px;
    max-width: 100%;
}

.gfs-register-layout .gigen-side-visual {
    order: 0;
    width: 100%;
}

.gfs-register-layout .gigen-side-visual img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.gfs-registration-success {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.gfs-registration-success-inner {
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 44px 30px;
    border-radius: 19px;
    background: rgba(42, 28, 119, 0.92);
    border: 1.5px solid #00aeef;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gfs-register-text {
    color: #fff;
    text-align: center;
    direction: rtl;
}

.gfs-register-text h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.8;
}

@media (max-width: 980px) {
    .gfs-register-layout .gigen-form-box {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .gigen-auth-card .gigen-side-visual {
        display: none !important;
    }
}

/* Login: persistent session opt-in (checked by default in the template). */
.gigen-remember-login{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:8px;
    margin-top:2px;
    color:rgba(255,255,255,.88);
    font-size:12px;
    cursor:pointer;
    user-select:none;
}
.gigen-remember-login input[type="checkbox"]{
    width:16px;
    height:16px;
    margin:0;
    accent-color:#71e2bd;
    cursor:pointer;
}
