/* Aysar company auth — aysar_auth-19 */
:root {
    --pri: #0f1f3d;
    --pri2: #0D2D5A;
    --acc: #33D61F;
    --acc2: #28b015;
    --bg: #f5f6fa;
    --card: #ffffff;
    --border: #e8ebf3;
    --text: #0f1f3d;
    --sub: #6b7a99;
    --muted: #a0aec0;
    --red: #ef4444;
    --radius: 12px;
    --acc-light: rgba(51, 214, 31, .06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.ays-auth-body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    font-size: 14px;
}

.auth-wrap {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 100vh;
}

[dir="rtl"] .auth-wrap {
    flex-direction: row-reverse;
}

.auth-panel {
    width: 45%;
    background: #060f1e;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    overflow: hidden;
    flex-shrink: 0;
}

.auth-panel__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .45;
    pointer-events: none;
}

.auth-panel__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(6, 15, 30, .88) 0%, rgba(6, 15, 30, .72) 55%, rgba(51, 214, 31, .12) 100%);
    pointer-events: none;
}

.auth-panel__deco {
    position: absolute;
    bottom: -20px;
    inset-inline-end: -10px;
    width: 180px;
    height: 180px;
    opacity: .85;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 900px) {
    .auth-panel {
        display: none;
    }
}

.panel-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.panel-headline {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 14px;
}

.panel-headline span {
    color: var(--acc);
}

.panel-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, .55);
    line-height: 1.7;
    max-width: 320px;
    margin: 0 auto;
}

.panel-stats {
    display: flex;
    gap: 20px;
    margin-top: 32px;
    position: relative;
    z-index: 2;
    justify-content: center;
}

.pstat {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    padding: 14px 18px;
    flex: 1;
    min-width: 0;
}

.pstat-val {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.pstat-val span {
    color: var(--acc);
}

.pstat-lbl {
    font-size: 11px;
    color: rgba(255, 255, 255, .45);
    font-weight: 500;
}

.panel-footer {
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 2;
    font-size: 12px;
    color: rgba(255, 255, 255, .25);
}

.auth-form-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    background: var(--card);
    overflow-y: auto;
}

.auth-box {
    width: 100%;
    max-width: 400px;
}

.form-logo {
    text-align: center;
    margin-bottom: 28px;
}

.form-logo img {
    height: 72px;
    width: auto;
    max-width: 100%;
}

.mobile-logo {
    display: none;
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.auth-sub {
    font-size: 13px;
    color: var(--sub);
    margin-bottom: 28px;
    line-height: 1.6;
}

.f-group {
    margin-bottom: 16px;
}

.f-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--sub);
    margin-bottom: 6px;
    display: block;
    letter-spacing: .2px;
}

.f-input-wrap {
    position: relative;
}

.f-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    font-size: 13px;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    color: var(--text);
    background: var(--bg);
    transition: border-color .15s, box-shadow .15s;
    height: 42px;
}

.f-input:focus {
    outline: none;
    border-color: var(--acc);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(51, 214, 31, .08);
}

.f-input.has-icon {
    padding-inline-start: 40px;
}

.f-input.has-icon-r {
    padding-inline-end: 38px;
}

input[type="email"],
input[type="tel"],
input[type="password"] {
    direction: ltr;
    text-align: left;
}

.f-eye {
    position: absolute;
    inset-inline-start: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--muted);
    display: flex;
    align-items: center;
    border: 0;
    background: transparent;
    padding: 0;
}

.f-eye:hover {
    color: var(--sub);
}

.f-eye svg {
    width: 16px;
    height: 16px;
}

.f-icon-r {
    position: absolute;
    inset-inline-end: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    display: flex;
    align-items: center;
    pointer-events: none;
}

.f-icon-r svg {
    width: 15px;
    height: 15px;
}

.f-err {
    font-size: 11px;
    color: var(--red);
    margin-top: 5px;
    display: block;
}

.f-input.error,
.f-input.is-invalid {
    border-color: var(--red);
}

.f-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .f-row {
        grid-template-columns: 1fr;
    }
}

.f-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 20px;
    cursor: pointer;
}

.f-check input[type=checkbox] {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    appearance: none;
    background: var(--bg);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 1px;
    position: relative;
    transition: .15s;
}

.f-check input[type=checkbox]:checked {
    background: var(--acc);
    border-color: var(--acc);
}

.f-check input[type=checkbox]:checked::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 6L5 9L10 3' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat;
}

.f-check-lbl {
    font-size: 12px;
    color: var(--sub);
    line-height: 1.5;
}

.f-check-lbl a {
    color: var(--pri2);
    font-weight: 600;
    text-decoration: none;
}

.f-check-lbl a:hover {
    color: var(--acc);
}

.forgot-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: -4px;
    gap: 12px;
    flex-wrap: wrap;
}

.forgot-link {
    font-size: 12px;
    color: var(--sub);
    text-decoration: none;
    font-weight: 500;
    transition: .15s;
}

.forgot-link:hover {
    color: var(--acc);
}

.btn-auth {
    width: 100%;
    padding: 12px 20px;
    background: var(--acc);
    color: #fff;
    border: 1.5px solid var(--acc);
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    cursor: pointer;
    transition: .15s;
    box-shadow: 0 4px 16px rgba(51, 214, 31, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-auth:hover {
    background: #fff;
    color: var(--acc);
    box-shadow: none;
}

.btn-auth:active {
    transform: scale(.98);
}

.btn-auth:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.btn-auth svg {
    width: 16px;
    height: 16px;
}

[dir="rtl"] .btn-auth svg {
    transform: scaleX(-1);
}

.btn-auth-sec {
    width: 100%;
    padding: 11px 20px;
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    cursor: pointer;
    transition: .15s;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-auth-sec:hover {
    border-color: var(--acc);
    color: var(--acc);
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: var(--sub);
}

.auth-switch a {
    color: var(--pri2);
    font-weight: 700;
    text-decoration: none;
}

.auth-switch a:hover {
    color: var(--acc);
}

.strength-wrap {
    margin-top: 6px;
}

.strength-bars {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}

.sbar {
    height: 3px;
    flex: 1;
    border-radius: 3px;
    background: var(--border);
    transition: .25s;
}

.sbar.weak {
    background: #ef4444;
}

.sbar.fair {
    background: #f59e0b;
}

.sbar.good {
    background: #33D61F;
}

.strength-lbl {
    font-size: 11px;
    color: var(--muted);
}

.pw-hints {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pw-hint {
    font-size: 11px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pw-hint svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.pw-hint.ok {
    color: #1f9a0d;
}

.pw-hint.ok svg {
    color: var(--acc);
}

.step-indicator {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
}

.step-line {
    flex: 1;
    min-width: 48px;
    max-width: 100px;
    height: 2px;
    background: var(--border);
    margin-top: 13px;
    transition: background .2s;
}

.step-indicator.is-step-2 .step-line {
    background: var(--acc);
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 0 0 96px;
    position: relative;
}

.step-item:not(:last-child)::after,
.step-item:not(:first-child)::before {
    display: none;
}

.step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    background: var(--card);
    position: relative;
    z-index: 1;
    transition: .2s;
}

.step-item.active .step-circle {
    border-color: var(--acc);
    color: var(--pri2);
}

.step-item.done .step-circle {
    background: var(--acc);
    border-color: var(--acc);
    color: #fff;
}

.step-lbl {
    font-size: 10px;
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
}

.step-item.active .step-lbl {
    color: var(--pri2);
    font-weight: 700;
}

.step-item.done .step-lbl {
    color: var(--acc2);
}

.otp-wrap {
    display: flex;
    gap: 10px;
    justify-content: center;
    direction: ltr;
    margin-bottom: 4px;
}

.otp-input {
    width: 56px;
    height: 56px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    color: var(--text);
    background: var(--bg);
    transition: .15s;
}

.otp-input:focus {
    outline: none;
    border-color: var(--acc);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(51, 214, 31, .08);
}

.otp-input.filled {
    border-color: var(--acc);
    background: var(--acc-light);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--sub);
    margin-bottom: 24px;
    text-decoration: none;
    font-weight: 500;
    transition: .15s;
}

.back-link:hover {
    color: var(--acc);
}

.back-link svg {
    width: 14px;
    height: 14px;
}

[dir="rtl"] .back-link svg {
    transform: scaleX(-1);
}

.auth-alert {
    padding: 11px 14px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.auth-alert[hidden] {
    display: none !important;
}

.auth-alert svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-info {
    background: rgba(15, 31, 61, .05);
    color: var(--pri2);
    border: 1px solid rgba(15, 31, 61, .1);
}

.alert-success {
    background: rgba(51, 214, 31, .07);
    color: #1a6b0d;
    border: 1px solid rgba(51, 214, 31, .2);
}

.alert-error {
    background: rgba(239, 68, 68, .07);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, .2);
}

.resend-row {
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: var(--sub);
}

.resend-link {
    color: var(--pri2);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
}

.resend-link:hover {
    color: var(--acc);
}

.resend-timer {
    color: var(--muted);
}

.auth-success-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 20px;
    display: block;
}

.auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--muted);
    flex-wrap: wrap;
}

.auth-lang {
    position: relative;
}

.auth-lang__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: var(--sub);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    padding: 4px 0;
}

.auth-lang__btn img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.auth-lang__menu {
    position: absolute;
    bottom: calc(100% + 6px);
    inset-inline-end: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 31, 61, .12);
    min-width: 130px;
    padding: 6px 0;
    display: none;
    z-index: 20;
}

.auth-lang__menu.is-open {
    display: block;
}

.auth-lang__menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--text);
    text-decoration: none;
    font-size: 12px;
}

.auth-lang__menu a:hover {
    background: var(--bg);
}

.auth-lang__menu img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

/* intl-tel-input inside auth form */
.auth-box .phone-box .iti {
    width: 100%;
    display: block;
}

.auth-box .phone-box .iti__flag-container {
    inset-inline-end: auto;
    inset-inline-start: 0;
}

.auth-box .phone-box .iti--separate-dial-code .iti__selected-flag {
    background: transparent;
    border-radius: 9px 0 0 9px;
}

.auth-box .phone-box .iti input.f-input,
.auth-box .phone-box .iti input[type="tel"] {
    width: 100%;
    padding-inline-start: 88px !important;
    padding-inline-end: 14px !important;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    font-size: 13px;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    color: var(--text);
    background: var(--bg);
    height: 42px;
    direction: ltr;
    text-align: left;
}

.auth-box .phone-box .iti input.f-input:focus,
.auth-box .phone-box .iti input[type="tel"]:focus {
    outline: none;
    border-color: var(--acc);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(51, 214, 31, .08);
}

@keyframes fadein {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-page-enter {
    animation: fadein .2s ease;
}
