
:root {
    --primary: #dc3545;
    --primary-dark: #b91c1c;
    --secondary: #0f172a;
    --secondary-2: #1e293b;
    --soft-dark: #111827;
    --muted: #94a3b8;
    --text: #e5e7eb;
    --white: #ffffff;
    --surface: rgba(255, 255, 255, 0.08);
    --surface-2: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.10);
    --danger-soft: rgba(220, 53, 69, 0.12);
    --success-soft: rgba(34, 197, 94, 0.12);
    --warning-soft: rgba(245, 158, 11, 0.14);
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    direction: rtl;
    min-height: 100vh;
    overflow-x: hidden;

    background:
        radial-gradient(circle at 10% 20%, rgba(220, 53, 69, 0.16), transparent 18%),
        radial-gradient(circle at 85% 15%, rgba(59, 130, 246, 0.10), transparent 16%),
        radial-gradient(circle at 80% 85%, rgba(220, 53, 69, 0.10), transparent 18%),
        linear-gradient(135deg, #0b1120 0%, #0f172a 38%, #111827 100%);
    color: var(--white);
}

.hidden {
    display: none !important;
    opacity: 0;
    visibility: hidden;
}

.fade-in {
    display: block !important;
    visibility: visible;
    animation: fadeInUp .45s ease forwards;
}

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

.personel-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.personel-auth-page::before,
.personel-auth-page::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
}

.personel-auth-page::before {
    width: 320px;
    height: 320px;
    top: -80px;
    right: -60px;
    background: rgba(220, 53, 69, 0.12);
}

.personel-auth-page::after {
    width: 280px;
    height: 280px;
    bottom: -80px;
    left: -50px;
    background: rgba(59, 130, 246, 0.10);
}

.auth-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
}

.auth-layout {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: 30px;
}

.showcase-zone {
    padding: 18px 12px 18px 0;
    position: relative;
}

.showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 22px;
    backdrop-filter: blur(8px);
}

.showcase-title {
    margin: 0 0 16px 0;
    font-size: 46px;
    font-weight: 900;
    line-height: 1.6;
    color: #fff;
    letter-spacing: -0.3px;
}

.showcase-text {
    max-width: 600px;
    margin: 0 0 28px 0;
    color: rgba(255,255,255,0.72);
    font-size: 15px;
    line-height: 2.15;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 680px;
}

.showcase-item {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    backdrop-filter: blur(10px);
}

.showcase-item::before {
    content: "";
    position: absolute;
    inset: auto auto 0 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(220,53,69,.9), transparent);
    opacity: .8;
}

.showcase-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 53, 69, 0.16);
    color: #fff;
    font-size: 20px;
    margin-bottom: 14px;
    border: 1px solid rgba(255,255,255,0.08);
}

.showcase-item h6 {
    margin: 0 0 8px 0;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.showcase-item p {
    margin: 0;
    color: rgba(255,255,255,0.68);
    font-size: 12.5px;
    line-height: 1.95;
}

.auth-stage-wrap {
    position: relative;
}

.auth-stage {
    position: relative;
    padding: 14px;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    overflow: hidden;
}

.auth-stage::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(220,53,69,0.22), transparent 70%);
    pointer-events: none;
}

.auth-stage::after {
    content: "";
    position: absolute;
    bottom: -50px;
    left: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 72%);
    pointer-events: none;
}

.auth-stage-inner {
    position: relative;
    z-index: 2;
    border-radius: 26px;
    padding: 30px;
    background: linear-gradient(180deg, rgba(13,18,32,.92), rgba(17,24,39,.96));
    border: 1px solid rgba(255,255,255,0.06);
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.brand-logo-wrap {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.brand-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.brand-content h2 {
    margin: 0;
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.5;
}

.brand-content p {
    margin: 6px 0 0 0;
    color: rgba(255,255,255,0.64);
    font-size: 12.8px;
    line-height: 1.95;
}

.top-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.56);
    font-size: 12px;
    font-weight: 700;
}

.progress-step .circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: #fff;
    font-size: 12px;
}

.progress-step.active {
    color: #fff;
}

.progress-step.active .circle {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(220, 53, 69, 0.28);
}

.progress-line {
    flex: 1;
    height: 2px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
}

.progress-line::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 50%;
    background: linear-gradient(90deg, var(--primary), rgba(220,53,69,.2));
}

.auth-step-box {
    background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 24px;
    padding: 20px;
}

.auth-step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.auth-step-title {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.auth-step-subtitle {
    margin: 5px 0 0 0;
    color: rgba(255,255,255,0.58);
    font-size: 12px;
    line-height: 1.9;
}

.mini-chip {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    background: rgba(220, 53, 69, 0.12);
    color: #ffd5d9;
    border: 1px solid rgba(220, 53, 69, 0.20);
    white-space: nowrap;
}

.form-label {
    font-size: 12.8px;
    color: #e2e8f0;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-icon-wrap {
    position: relative;
}

.form-icon-wrap .fea {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: #94a3b8;
    width: 17px;
    height: 17px;
    z-index: 2;
}

.form-control {
    height: 56px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 14px;
    padding-right: 48px !important;
    padding-left: 16px !important;
    box-shadow: none !important;
    transition: all .22s ease;
}

.form-control::placeholder {
    color: rgba(255,255,255,0.34);
}

.form-control:focus {
    background: rgba(255,255,255,0.07);
    border-color: rgba(220,53,69,0.55);
    box-shadow: 0 0 0 4px rgba(220,53,69,0.10) !important;
    color: #fff;
}

.form-check-input {
    background-color: transparent;
    border-color: rgba(255,255,255,0.22);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-label {
    color: rgba(255,255,255,0.70);
    font-size: 12.8px;
}

.forgot-pass a {
    color: #fff !important;
    font-size: 12.8px;
    text-decoration: none;
    opacity: .78;
}

.forgot-pass a:hover {
    opacity: 1;
    text-decoration: underline;
}

.btn-auth {
    position: relative;
    overflow: hidden;
    height: 56px;
    border: 0;
    border-radius: 18px;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 16px 28px rgba(220, 53, 69, 0.26);
    transition: all .24s ease;
}

.btn-auth:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 20px 34px rgba(220, 53, 69, 0.30);
}

.btn-auth:disabled {
    opacity: .82;
}

.btn-ghost {
    height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    transition: all .2s ease;
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.helper-note {
    margin-top: 14px;
    color: rgba(255,255,255,0.46);
    font-size: 11.6px;
    line-height: 1.95;
}

.error-note {
    font-size: 12px;
    margin-top: 6px;
}

.otp-panel {
    background: linear-gradient(180deg, rgba(220,53,69,.06), rgba(255,255,255,.02));
    border: 1px solid rgba(220,53,69,.10);
    border-radius: 20px;
    padding: 14px;
    margin-top: 6px;
}

.timer-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.12);
    color: #fde68a;
    border: 1px dashed rgba(245, 158, 11, 0.34);
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 12px;
    margin-top: 2px;
}

.resend-code {
    display: none;
    margin-top: 12px;
    font-size: 12.5px;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    opacity: .86;
}

.resend-code:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-note {
    text-align: center;
    margin-top: 16px;
    color: rgba(255,255,255,0.52);
    font-size: 11.8px;
}

.back-home {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 8;
}

.back-home a {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.16);
}

.swal2-container .swal2-toast {
    padding: 10px 12px !important;
    border-radius: 14px !important;
    font-size: 12px !important;
}

.swal2-container .swal2-toast .swal2-title {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    line-height: 1.8 !important;
    margin: 0 8px !important;
}

.swal2-container .swal2-toast .swal2-icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    margin: 0 0 0 8px !important;
}

.swal2-container .swal2-toast .swal2-icon-content {
    font-size: 14px !important;
}

.swal2-container .swal2-timer-progress-bar {
    height: 2px !important;
}

@media (max-width: 1199.98px) {
    .showcase-title {
        font-size: 40px;
    }
}

@media (max-width: 991.98px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .showcase-zone {
        display: none;
    }

    .auth-shell {
        max-width: 580px;
    }

    .auth-stage-inner {
        padding: 24px;
    }
}

@media (max-width: 575.98px) {
    .personel-auth-page {
        padding: 14px;
    }

    .auth-stage {
        border-radius: 24px;
        padding: 10px;
    }

    .auth-stage-inner {
        border-radius: 18px;
        padding: 18px 14px;
    }

    .brand-row {
        align-items: flex-start;
    }

    .brand-logo-wrap {
        width: 64px;
        height: 64px;
        border-radius: 18px;
    }

    .brand-logo {
        width: 46px;
        height: 46px;
    }

    .brand-content h2 {
        font-size: 22px;
    }

    .top-progress {
        gap: 8px;
    }

    .progress-step span.label {
        display: none;
    }

    .auth-step-box {
        padding: 16px;
        border-radius: 18px;
    }

    .auth-step-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-control,
    .btn-auth {
        height: 50px;
    }

    .btn-ghost {
        height: 44px;
    }
}
