```css
/* =========================================================
   FARASO
   SECURE AUTH SYSTEM
   LOGIN + REGISTER
   DARK / LIGHT
   RTL
   VERSION 2.0
========================================================= */


/* =========================================================
   RESET
========================================================= */

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

html {
    scroll-behavior: smooth;
}

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

:root {

    /* Background */
    --bg: #07090e;
    --panel: #0d1119;
    --card: rgba(17, 22, 32, .95);

    /* Text */
    --text: #f5f7fa;
    --muted: #8d96a6;
    --muted-light: #aab2c0;

    /* Borders */
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .14);

    /* Inputs */
    --input: rgba(255, 255, 255, .045);
    --input-hover: rgba(255, 255, 255, .065);

    /* Brand */
    --primary: #e21d2f;
    --primary-dark: #b91225;
    --primary-light: #ff3348;

    /* Status */
    --success: #20c77a;
    --warning: #f0a928;
    --danger: #ff596b;
    --info: #4f9cff;

    /* Radius */
    --radius-sm: 9px;
    --radius-md: 13px;
    --radius-lg: 18px;
    --radius-xl: 25px;

    /* Shadow */
    --shadow:
        0 35px 100px rgba(0, 0, 0, .48);

    /* Transition */
    --transition:
        .3s cubic-bezier(.22, .61, .36, 1);
}


/* =========================================================
   LIGHT MODE VARIABLES
========================================================= */

body.light {

    --bg: #eef1f5;
    --panel: #ffffff;
    --card: rgba(255, 255, 255, .97);

    --text: #17191f;
    --muted: #6d7480;
    --muted-light: #555d69;

    --line: rgba(0, 0, 0, .09);
    --line-strong: rgba(0, 0, 0, .14);

    --input: #f5f6f8;
    --input-hover: #eef0f3;

    --shadow:
        0 30px 80px rgba(25, 30, 40, .14);
}


/* =========================================================
   BODY
========================================================= */

body {

    direction: rtl;

    font-family:
        Tahoma,
        Arial,
        sans-serif;

    background:
        var(--bg);

    color:
        var(--text);

    overflow-x: hidden;

    transition:
        background .4s ease,
        color .4s ease;
}


button,
input,
select {

    font-family: inherit;
}


button {

    -webkit-tap-highlight-color: transparent;
}


button,
input,
select {

    outline: none;
}


/* =========================================================
   SECURITY BACKGROUND
========================================================= */

.security-bg {

    position: fixed;

    inset: 0;

    z-index: 0;

    overflow: hidden;

    pointer-events: none;

    background:

        radial-gradient(
            circle at 12% 20%,
            rgba(226, 29, 47, .13),
            transparent 32%
        ),

        radial-gradient(
            circle at 85% 78%,
            rgba(50, 110, 220, .08),
            transparent 34%
        );
}


.grid-lines {

    position: absolute;

    inset: 0;

    opacity: .23;

    background-image:

        linear-gradient(
            rgba(255, 255, 255, .035) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255, 255, 255, .035) 1px,
            transparent 1px
        );

    background-size: 45px 45px;
}


body.light .grid-lines {

    opacity: .12;

    background-image:

        linear-gradient(
            rgba(0, 0, 0, .035) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(0, 0, 0, .035) 1px,
            transparent 1px
        );
}


/* =========================================================
   SCAN LINE
========================================================= */

.scan-line {

    position: absolute;

    top: -10%;

    left: 0;
    right: 0;

    height: 1px;

    background:

        linear-gradient(
            90deg,
            transparent,
            rgba(226, 29, 47, .75),
            transparent
        );

    box-shadow:
        0 0 25px rgba(226, 29, 47, .5);

    animation:
        scan 7s linear infinite;
}


@keyframes scan {

    0% {

        transform:
            translateY(0);

        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {

        transform:
            translateY(110vh);

        opacity: 0;
    }
}


/* =========================================================
   FLOATING DOTS
========================================================= */

.floating-dot {

    position: absolute;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background:
        var(--primary);

    box-shadow:
        0 0 15px var(--primary);

    animation:
        floatDot 6s ease-in-out infinite;
}


.dot-one {

    top: 20%;
    left: 7%;
}


.dot-two {

    top: 70%;
    left: 48%;

    animation-delay: 2s;
}


.dot-three {

    top: 35%;
    right: 8%;

    animation-delay: 4s;
}


@keyframes floatDot {

    0%,
    100% {

        transform:
            translateY(0);

        opacity: .35;
    }

    50% {

        transform:
            translateY(-25px);

        opacity: 1;
    }
}


/* =========================================================
   TOP BAR
========================================================= */

.top-bar {

    position: relative;

    z-index: 10;

    height: 82px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding:
        0 5vw;
}


.brand {

    display: flex;

    align-items: center;

    gap: 12px;
}


.brand-icon {

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid rgba(226, 29, 47, .35);

    border-radius: 12px;

    background:
        rgba(226, 29, 47, .08);

    color:
        var(--primary);

    font-size: 18px;
}


.brand strong {

    display: block;

    font-size: 18px;

    letter-spacing: 2px;
}


.brand span {

    display: block;

    margin-top: 3px;

    color:
        var(--muted);

    font-size: 8px;

    letter-spacing: 2px;
}


/* =========================================================
   THEME TOGGLE
========================================================= */

.theme-toggle {

    width: 43px;
    height: 43px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid var(--line);

    border-radius: 13px;

    background:
        var(--card);

    color:
        var(--text);

    cursor: pointer;

    transition:
        var(--transition);
}


.theme-toggle:hover {

    color:
        var(--primary);

    transform:
        rotate(10deg)
        scale(1.05);

    border-color:
        rgba(226, 29, 47, .3);
}


/* =========================================================
   MAIN AUTH PAGE
========================================================= */

.auth-page {

    position: relative;

    z-index: 2;

    width:
        min(1250px, 92%);

    min-height:
        calc(100vh - 82px);

    margin:
        auto;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    align-items: center;

    gap: 45px;

    padding:
        20px 0 40px;
}


/* =========================================================
   SECURITY PANEL
========================================================= */

.security-panel {

    min-height: 650px;

    display: flex;

    align-items: center;
}


.security-content {

    width: 100%;
}


.status-badge {

    width: fit-content;

    display: flex;

    align-items: center;

    gap: 8px;

    padding:
        8px 13px;

    border:
        1px solid rgba(32, 199, 122, .22);

    border-radius: 50px;

    background:
        rgba(32, 199, 122, .06);

    color:
        var(--success);

    font-size: 10px;
}


.status-dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        var(--success);

    box-shadow:
        0 0 12px var(--success);

    animation:
        pulse 1.7s infinite;
}


@keyframes pulse {

    0%,
    100% {

        opacity: .4;

        transform:
            scale(.8);
    }

    50% {

        opacity: 1;

        transform:
            scale(1.15);
    }
}


/* =========================================================
   SECURITY TITLE
========================================================= */

.security-title {

    margin-top: 30px;
}


.security-title > span {

    color:
        var(--primary);

    font-weight: 900;

    letter-spacing: 5px;

    font-size: 13px;
}


.security-title h1 {

    margin-top: 10px;

    max-width: 580px;

    font-size:
        clamp(38px, 5vw, 68px);

    line-height: 1.15;

    font-weight: 900;
}


.security-title h1 strong {

    display: block;

    color:
        var(--primary);
}


.security-title p {

    max-width: 480px;

    margin-top: 22px;

    color:
        var(--muted);

    font-size: 14px;

    line-height: 2;
}


/* =========================================================
   RADAR
========================================================= */

.security-visual {

    height: 280px;

    margin-top: 20px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.radar {

    position: relative;

    width: 240px;
    height: 240px;

    border:
        1px solid rgba(226, 29, 47, .18);

    border-radius: 50%;

    background:

        radial-gradient(
            circle,
            rgba(226, 29, 47, .08),
            transparent 65%
        );
}


.radar-circle {

    position: absolute;

    inset: 15%;

    border:
        1px solid rgba(226, 29, 47, .18);

    border-radius: 50%;
}


.circle-two {
    inset: 30%;
}


.circle-three {
    inset: 43%;
}


.radar-line {

    position: absolute;

    width: 50%;
    height: 1px;

    top: 50%;
    left: 50%;

    transform-origin:
        left center;

    background:

        linear-gradient(
            90deg,
            var(--primary),
            transparent
        );

    animation:
        radarRotate 3s linear infinite;
}


@keyframes radarRotate {

    to {
        transform:
            rotate(360deg);
    }
}


.radar-center {

    position: absolute;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%);

    width: 62px;
    height: 62px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid rgba(226, 29, 47, .4);

    border-radius: 50%;

    background:
        rgba(226, 29, 47, .1);

    color:
        var(--primary);

    font-size: 24px;

    box-shadow:
        0 0 35px rgba(226, 29, 47, .15);
}


.radar-point {

    position: absolute;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background:
        var(--primary);

    box-shadow:
        0 0 15px var(--primary);
}


.point-one {

    top: 24%;
    right: 25%;
}


.point-two {

    bottom: 30%;
    left: 20%;
}


.point-three {

    top: 65%;
    right: 18%;
}


/* =========================================================
   FEATURES
========================================================= */

.security-features {

    display: flex;

    gap: 12px;

    max-width: 500px;
}


.security-features > div {

    flex: 1;

    padding: 13px;

    display: flex;

    align-items: center;

    gap: 8px;

    border:
        1px solid var(--line);

    border-radius: 13px;

    background:
        rgba(255, 255, 255, .025);

    color:
        var(--muted);

    font-size: 10px;

    transition:
        var(--transition);
}


.security-features > div:hover {

    transform:
        translateY(-3px);

    border-color:
        rgba(226, 29, 47, .25);

    color:
        var(--text);
}


.security-features i {

    color:
        var(--primary);

    font-size: 16px;
}


/* =========================================================
   AUTH SECTION
========================================================= */

.auth-section {

    display: flex;

    flex-direction: column;

    align-items: center;

    width: 100%;
}


.auth-card {

    position: relative;

    width:
        min(500px, 100%);

    overflow: hidden;

    border:
        1px solid var(--line);

    border-radius: 25px;

    background:
        var(--card);

    box-shadow:
        var(--shadow);

    backdrop-filter:
        blur(25px);

    -webkit-backdrop-filter:
        blur(25px);
}


.auth-card::before {

    content: "";

    position: absolute;

    top: 0;

    left: 15%;
    right: 15%;

    height: 2px;

    background:

        linear-gradient(
            90deg,
            transparent,
            var(--primary),
            transparent
        );
}


/* =========================================================
   AUTH CARD HEADER
========================================================= */

.auth-card-top {

    display: flex;

    align-items: center;

    gap: 12px;

    padding:
        25px 30px;

    border-bottom:
        1px solid var(--line);
}


.auth-mini-logo {

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background:
        rgba(226, 29, 47, .09);

    border:
        1px solid rgba(226, 29, 47, .25);

    color:
        var(--primary);

    font-size: 18px;
}


.auth-card-top span {

    display: block;

    color:
        var(--primary);

    font-size: 9px;

    letter-spacing: 2px;
}


.auth-card-top small {

    display: block;

    margin-top: 4px;

    color:
        var(--muted);

    font-size: 11px;
}


/* =========================================================
   AUTH FORMS
========================================================= */

.auth-form {

    display: none;

    padding:
        28px 30px 30px;

    animation:
        formEnter .4s ease;
}


.auth-form.active {

    display: block;
}


@keyframes formEnter {

    from {

        opacity: 0;

        transform:
            translateY(12px);
    }

    to {

        opacity: 1;

        transform:
            translateY(0);
    }
}


/* =========================================================
   FORM HEADING
========================================================= */

.form-heading {

    margin-bottom: 22px;
}


.form-heading > span {

    color:
        var(--primary);

    font-size: 11px;

    font-weight: 800;
}


.form-heading h2 {

    margin-top: 5px;

    font-size: 28px;

    font-weight: 900;
}


.form-heading p {

    margin-top: 7px;

    color:
        var(--muted);

    font-size: 11px;

    line-height: 1.9;
}


/* =========================================================
   INPUT GROUP
========================================================= */

.input-group {

    margin-bottom: 15px;
}


.input-group label {

    display: block;

    margin-bottom: 7px;

    color:
        var(--muted);

    font-size: 11px;

    font-weight: 600;
}


.input-box {

    position: relative;

    width: 100%;
}


.input-box > i {

    position: absolute;

    right: 14px;

    top: 50%;

    transform:
        translateY(-50%);

    color:
        var(--muted);

    pointer-events: none;

    z-index: 2;
}


.input-box input,
.input-box select {

    width: 100%;

    height: 48px;

    padding:
        0 42px;

    outline: none;

    border:
        1px solid var(--line);

    border-radius: 13px;

    background:
        var(--input);

    color:
        var(--text);

    font-size: 12px;

    transition:
        var(--transition);
}


.input-box input:hover,
.input-box select:hover {

    background:
        var(--input-hover);
}


.input-box input::placeholder {

    color:
        var(--muted);

    opacity: .85;
}


.input-box input:focus,
.input-box select:focus {

    border-color:
        rgba(226, 29, 47, .65);

    background:
        var(--input-hover);

    box-shadow:
        0 0 0 3px
        rgba(226, 29, 47, .08);
}


.input-box select {

    appearance: none;

    cursor: pointer;
}


.input-box select option {

    background:
        #111722;

    color:
        #fff;
}


body.light .input-box select option {

    background:
        #fff;

    color:
        #17191f;
}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.password-toggle {

    position: absolute;

    left: 10px;

    top: 50%;

    transform:
        translateY(-50%);

    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 0;

    background:
        transparent;

    color:
        var(--muted);

    cursor: pointer;

    z-index: 3;

    border-radius: 8px;

    transition:
        .2s ease;
}


.password-toggle:hover {

    color:
        var(--primary);

    background:
        rgba(226, 29, 47, .07);
}


/* =========================================================
   FORM ROW
========================================================= */

.form-row {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 12px;
}


/* =========================================================
   OPTIONS
========================================================= */

.form-options {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin:
        5px 0 18px;
}


.remember {

    display: flex;

    align-items: center;

    gap: 7px;

    color:
        var(--muted);

    font-size: 10px;

    cursor: pointer;

    user-select: none;
}


.remember input {

    display: none;
}


.remember span {

    width: 15px;
    height: 15px;

    display: inline-block;

    border:
        1px solid var(--line);

    border-radius: 4px;

    transition:
        .2s ease;
}


.remember input:checked + span {

    background:
        var(--primary);

    border-color:
        var(--primary);

    box-shadow:
        0 0 12px
        rgba(226, 29, 47, .3);
}


.forgot-btn {

    border: 0;

    background:
        transparent;

    color:
        var(--primary);

    font-size: 10px;

    cursor: pointer;
}


.forgot-btn:hover {

    text-decoration:
        underline;
}


/* =========================================================
   MAIN BUTTON
========================================================= */

.main-btn {

    position: relative;

    width: 100%;

    height: 52px;

    border: 0;

    border-radius: 14px;

    background:

        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: #fff;

    font-size: 12px;

    font-weight: 800;

    cursor: pointer;

    overflow: hidden;

    transition:
        var(--transition);

    box-shadow:

        0 12px 30px
        rgba(226, 29, 47, .18);
}


.main-btn::after {

    content: "";

    position: absolute;

    top: 0;

    left: -100%;

    width: 70%;

    height: 100%;

    background:

        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, .2),
            transparent
        );

    transform:
        skewX(-20deg);
}


.main-btn:hover::after {

    left: 130%;

    transition:
        .7s ease;
}


.main-btn:hover {

    transform:
        translateY(-2px);

    box-shadow:

        0 16px 35px
        rgba(226, 29, 47, .25);
}


.main-btn:active {

    transform:
        translateY(0)
        scale(.99);
}


.main-btn:disabled {

    opacity: .75;

    cursor:
        not-allowed;

    transform:
        none;
}


.button-content,
.button-loading {

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;
}


.button-loading {

    display: none;
}


.main-btn.loading .button-content {

    display: none;
}


.main-btn.loading .button-loading {

    display: flex;
}


.spinner {

    width: 16px;
    height: 16px;

    border:
        2px solid rgba(255, 255, 255, .35);

    border-top-color:
        #fff;

    border-radius: 50%;

    animation:
        spin .7s linear infinite;
}


@keyframes spin {

    to {

        transform:
            rotate(360deg);
    }
}


/* =========================================================
   AUTH SWITCH
========================================================= */

.switch-auth {

    margin-top: 22px;

    padding-top: 20px;

    border-top:
        1px solid var(--line);

    text-align: center;

    color:
        var(--muted);

    font-size: 10px;
}


.switch-auth button {

    border: 0;

    background:
        transparent;

    color:
        var(--primary);

    font-size: 10px;

    font-weight: 800;

    cursor: pointer;
}


.switch-auth button:hover {

    text-decoration:
        underline;
}


/* =========================================================
   LEGACY FORM GROUP
========================================================= */

.form-group {

    margin-bottom: 15px;
}


.form-group > label {

    display: block;

    margin-bottom: 7px;

    color:
        var(--muted);

    font-size: 11px;
}


.form-group > label i {

    margin-left: 5px;

    color:
        var(--primary);
}


/* =========================================================
   FILE UPLOAD - GENERAL
========================================================= */

.file-upload {

    position: relative;

    width: 100%;
}


.file-upload input[type="file"] {

    display: none;
}


.file-upload-label {

    width: 100%;

    min-height: 72px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding:
        10px 14px;

    border:
        1px dashed
        rgba(226, 29, 47, .4);

    border-radius: 14px;

    background:

        linear-gradient(
            135deg,
            rgba(226, 29, 47, .045),
            rgba(255, 255, 255, .015)
        );

    color:
        var(--muted);

    font-size: 11px;

    cursor: pointer;

    transition:
        var(--transition);
}


.file-upload-label:hover {

    transform:
        translateY(-2px);

    border-color:
        rgba(226, 29, 47, .75);

    background:
        rgba(226, 29, 47, .07);

    box-shadow:

        0 10px 30px
        rgba(226, 29, 47, .08);
}


.file-upload-label i {

    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    border-radius: 11px;

    background:
        rgba(226, 29, 47, .1);

    color:
        var(--primary);

    font-size: 18px;
}


/* =========================================================
   BUSINESS DOCUMENT BOX
========================================================= */

.license-upload {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 13px;

    margin:
        18px 0 8px;

    border:
        1px dashed
        rgba(226, 29, 47, .35);

    border-radius: 14px;

    background:

        linear-gradient(
            135deg,
            rgba(226, 29, 47, .045),
            rgba(255, 255, 255, .015)
        );

    transition:
        var(--transition);
}


.license-upload:hover {

    border-color:
        rgba(226, 29, 47, .55);

    background:
        rgba(226, 29, 47, .055);
}


.upload-icon {

    width: 40px;
    height: 40px;

    min-width: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 11px;

    background:
        rgba(226, 29, 47, .1);

    color:
        var(--primary);

    font-size: 19px;
}


.upload-info {

    flex: 1;

    min-width: 0;
}


.upload-info strong {

    display: block;

    font-size: 11px;

    font-weight: 800;
}


.upload-info span {

    display: block;

    margin-top: 3px;

    color:
        var(--muted);

    font-size: 8px;

    line-height: 1.7;
}


.upload-button {

    position: relative;

    padding:
        9px 11px;

    border-radius: 9px;

    background:
        var(--primary);

    color:
        #fff;

    font-size: 9px;

    font-weight: 700;

    cursor: pointer;

    white-space: nowrap;

    overflow: hidden;

    transition:
        .2s ease;
}


.upload-button:hover {

    background:
        var(--primary-light);

    transform:
        translateY(-1px);
}


.upload-button input {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;

    cursor: pointer;
}


/* =========================================================
   FILE INFORMATION
========================================================= */

.file-info,
#licenseFileInfo,
#nationalCardInfo {

    min-height: 18px;

    margin-top: 7px;

    padding:
        0 3px;

    color:
        var(--muted);

    font-size: 9px;

    line-height: 1.8;

    word-break: break-word;
}


.file-info.success,
#licenseFileInfo.success,
#nationalCardInfo.success {

    color:
        var(--success);
}


.file-info.error,
#licenseFileInfo.error,
#nationalCardInfo.error {

    color:
        var(--danger);
}


.file-info.warning,
#licenseFileInfo.warning,
#nationalCardInfo.warning {

    color:
        var(--warning);
}


/* =========================================================
   NATIONAL CARD
========================================================= */

.national-card-upload {

    margin-top: 14px;
}


/* =========================================================
   SECURITY NOTICE
   IMPORTANT: styled for the exact HTML
========================================================= */

.security-notice {

    position: relative;

    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin:
        18px 0 18px;

    padding:
        14px 15px;

    border:
        1px solid rgba(79, 156, 255, .18);

    border-radius: 15px;

    background:

        linear-gradient(
            135deg,
            rgba(79, 156, 255, .075),
            rgba(79, 156, 255, .025)
        );

    color:
        var(--muted-light);

    overflow: hidden;
}


.security-notice::before {

    content: "";

    position: absolute;

    top: 0;
    right: 0;

    width: 3px;
    height: 100%;

    background:
        var(--info);

    box-shadow:
        0 0 14px
        rgba(79, 156, 255, .35);
}


.security-notice i {

    width: 32px;
    height: 32px;

    min-width: 32px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 9px;

    background:
        rgba(79, 156, 255, .1);

    color:
        #60a5fa;

    font-size: 16px;
}


.security-notice span {

    display: block;

    padding-top: 2px;

    color:
        var(--muted-light);

    font-size: 10px;

    line-height: 2;

    text-align:
        right;
}


.security-notice:hover {

    border-color:
        rgba(79, 156, 255, .3);

    background:

        linear-gradient(
            135deg,
            rgba(79, 156, 255, .10),
            rgba(79, 156, 255, .035)
        );
}


/* =========================================================
   MESSAGES
========================================================= */

.message {

    display: none;

    padding:
        12px 14px;

    margin-bottom: 15px;

    border-radius: 12px;

    font-size: 10px;

    line-height: 1.9;

    animation:
        messageIn .3s ease;
}


.message.show {

    display: block;
}


.message.error {

    color:
        #ff6573;

    background:
        rgba(226, 29, 47, .08);

    border:
        1px solid rgba(226, 29, 47, .18);
}


.message.success {

    color:
        var(--success);

    background:
        rgba(32, 199, 122, .07);

    border:
        1px solid rgba(32, 199, 122, .18);
}


.message.warning {

    color:
        var(--warning);

    background:
        rgba(240, 169, 40, .07);

    border:
        1px solid rgba(240, 169, 40, .18);
}


@keyframes messageIn {

    from {

        opacity: 0;

        transform:
            translateY(-6px);
    }

    to {

        opacity: 1;

        transform:
            translateY(0);
    }
}


/* =========================================================
   SECURITY CODE MODAL
========================================================= */

.security-code-modal {

    position: fixed;

    inset: 0;

    z-index: 999999;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    direction: rtl;
}


.security-code-modal.show {

    display: flex;

    animation:
        securityModalFade .25s ease forwards;
}


.security-code-backdrop {

    position: absolute;

    inset: 0;

    background:
        rgba(2, 6, 23, .86);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);
}


.security-code-box {

    position: relative;

    z-index: 2;

    width:
        min(520px, 100%);

    padding:
        40px 30px 30px;

    text-align:
        center;

    border-radius:
        28px;

    background:

        linear-gradient(
            145deg,
            #151b2d,
            #0a0f1d
        );

    border:
        1px solid
        rgba(255, 255, 255, .12);

    box-shadow:

        0 35px 110px
        rgba(0, 0, 0, .65);

    transform:
        translateY(25px)
        scale(.94);

    animation:

        securityBoxIn .4s
        cubic-bezier(.2, .8, .2, 1)
        forwards;
}


.security-code-icon {

    width: 78px;
    height: 78px;

    margin:
        0 auto 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 22px;

    background:
        rgba(59, 130, 246, .12);

    border:
        1px solid
        rgba(96, 165, 250, .28);

    color:
        #60a5fa;

    box-shadow:
        0 0 35px
        rgba(59, 130, 246, .15);
}


.security-code-icon i {

    font-size: 36px;
}


.security-code-title {

    margin-bottom: 10px;

    color:
        #fff;

    font-size: 25px;

    font-weight: 900;
}


.security-code-description {

    margin-bottom: 18px;

    color:
        rgba(255, 255, 255, .65);

    font-size: 13px;

    line-height: 2;
}


.security-code-warning {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    margin-bottom: 15px;

    padding:
        11px 14px;

    border-radius: 12px;

    background:
        rgba(245, 158, 11, .08);

    border:
        1px solid
        rgba(245, 158, 11, .18);

    color:
        #fbbf24;

    font-size: 12px;

    font-weight: 600;
}


.security-code-display {

    padding:
        21px;

    margin-bottom:
        18px;

    border-radius:
        18px;

    background:
        rgba(0, 0, 0, .28);

    border:
        1px dashed
        rgba(96, 165, 250, .38);

    box-shadow:
        inset 0 0 25px
        rgba(0, 0, 0, .12);
}


.security-code-display span {

    display: block;

    direction: ltr;

    color:
        #60a5fa;

    font-family:
        "Courier New",
        monospace;

    font-size: 24px;

    font-weight: 900;

    letter-spacing: 2px;

    user-select: all;

    word-break: break-all;
}


.security-code-actions {

    display: flex;

    gap: 10px;
}


.security-code-actions button {

    flex: 1;

    height: 51px;

    border: 0;

    border-radius: 13px;

    cursor: pointer;

    font-family: inherit;

    font-size: 13px;

    font-weight: 800;

    transition:
        .2s ease;
}


.security-copy-btn {

    background:
        #2563eb;

    color:
        #fff;

    box-shadow:
        0 8px 22px
        rgba(37, 99, 235, .25);
}


.security-copy-btn:hover {

    background:
        #3b82f6;

    transform:
        translateY(-2px);
}


.security-copy-btn:active {

    transform:
        translateY(0);
}


.security-close-btn {

    background:
        rgba(255, 255, 255, .07);

    color:
        rgba(255, 255, 255, .8);

    border:
        1px solid
        rgba(255, 255, 255, .1) !important;
}


.security-close-btn:hover {

    background:
        rgba(255, 255, 255, .12);
}


/* =========================================================
   TOAST
========================================================= */

.toast {

    position: fixed;

    left: 25px;

    bottom: 25px;

    z-index: 99999;

    width:
        min(340px, calc(100vw - 40px));

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 13px;

    border:
        1px solid var(--line);

    border-radius: 15px;

    background:
        var(--card);

    box-shadow:

        0 20px 50px
        rgba(0, 0, 0, .25);

    backdrop-filter:
        blur(20px);

    transform:
        translateY(120px);

    opacity: 0;

    pointer-events: none;

    transition:
        .4s ease;
}


.toast.show {

    transform:
        translateY(0);

    opacity: 1;
}


.toast-icon {

    width: 37px;
    height: 37px;

    min-width: 37px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    background:
        rgba(32, 199, 122, .1);

    color:
        var(--success);
}


.toast strong,
.toast span {

    display: block;
}


.toast strong {

    font-size: 11px;
}


.toast span {

    margin-top: 3px;

    color:
        var(--muted);

    font-size: 9px;
}


/* =========================================================
   COPYRIGHT
========================================================= */

.copyright {

    margin-top: 18px;

    color:
        var(--muted);

    font-size: 8px;

    opacity: .7;

    text-align:
        center;
}


/* =========================================================
   SESSION OVERLAY
========================================================= */

#farasoSessionOverlay {

    position: fixed;

    inset: 0;

    z-index: 999999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(5, 8, 18, .84);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    animation:
        farasoOverlayIn .35s ease forwards;
}


.faraso-session-box {

    width:
        min(420px, 100%);

    padding:
        42px 30px;

    text-align:
        center;

    border-radius:
        28px;

    background:

        linear-gradient(
            145deg,
            rgba(25, 30, 48, .97),
            rgba(12, 16, 29, .99)
        );

    border:
        1px solid
        rgba(255, 255, 255, .12);

    box-shadow:

        0 30px 90px
        rgba(0, 0, 0, .55);

    animation:

        farasoBoxIn .45s
        cubic-bezier(.2, .8, .2, 1)
        forwards;
}


.faraso-session-icon {

    width: 82px;
    height: 82px;

    margin:
        0 auto 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        rgba(34, 197, 94, .12);

    border:
        1px solid
        rgba(34, 197, 94, .28);

    box-shadow:
        0 0 35px
        rgba(34, 197, 94, .15);
}


.faraso-session-icon i {

    font-size: 42px;

    color:
        #22c55e;
}


.faraso-session-box h3 {

    margin-bottom: 10px;

    color:
        #fff;

    font-size: 24px;

    font-weight: 800;
}


.faraso-session-box p {

    color:
        rgba(255, 255, 255, .68);

    font-size: 14px;

    line-height: 2;
}


.faraso-session-loader {

    display: flex;

    justify-content: center;

    gap: 6px;

    margin:
        0 auto 18px;
}


.faraso-session-loader span {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        #22c55e;

    animation:
        farasoDot 1.2s
        infinite
        ease-in-out;
}


.faraso-session-loader span:nth-child(2) {

    animation-delay:
        .15s;
}


.faraso-session-loader span:nth-child(3) {

    animation-delay:
        .30s;
}


@keyframes farasoDot {

    0%,
    80%,
    100% {

        transform:
            translateY(0);

        opacity: .35;
    }

    40% {

        transform:
            translateY(-6px);

        opacity: 1;
    }
}


/* =========================================================
   MODAL ANIMATIONS
========================================================= */

@keyframes securityModalFade {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


@keyframes securityBoxIn {

    from {

        opacity: 0;

        transform:
            translateY(25px)
            scale(.94);
    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


@keyframes farasoOverlayIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


@keyframes farasoBoxIn {

    from {

        opacity: 0;

        transform:
            translateY(20px)
            scale(.96);
    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================================
   LIGHT MODE - SECURITY MODAL
========================================================= */

body.light .security-code-backdrop {

    background:
        rgba(15, 23, 42, .55);
}


body.light .security-code-box {

    background:

        linear-gradient(
            145deg,
            #ffffff,
            #f4f6fa
        );

    border-color:
        rgba(0, 0, 0, .09);

    box-shadow:

        0 35px 100px
        rgba(0, 0, 0, .2);
}


body.light .security-code-title {

    color:
        #17191f;
}


body.light .security-code-description {

    color:
        #6d7480;
}


body.light .security-code-display {

    background:
        rgba(0, 0, 0, .035);

    border-color:
        rgba(37, 99, 235, .25);
}


body.light .security-code-warning {

    background:
        rgba(245, 158, 11, .08);

    color:
        #b77905;
}


body.light .security-close-btn {

    color:
        #3f4652;

    background:
        rgba(0, 0, 0, .045);

    border-color:
        rgba(0, 0, 0, .08) !important;
}


body.light .faraso-session-box {

    background:

        linear-gradient(
            145deg,
            #ffffff,
            #f3f5f8
        );

    border-color:
        rgba(0, 0, 0, .08);
}


body.light .faraso-session-box h3 {

    color:
        #17191f;
}


body.light .faraso-session-box p {

    color:
        #6d7480;
}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {

    width: 7px;
}


::-webkit-scrollbar-track {

    background:
        transparent;
}


::-webkit-scrollbar-thumb {

    background:
        rgba(226, 29, 47, .45);

    border-radius:
        50px;
}


::-webkit-scrollbar-thumb:hover {

    background:
        var(--primary);
}


/* =========================================================
   SELECTION
========================================================= */

::selection {

    background:
        rgba(226, 29, 47, .35);

    color:
        #fff;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

button:focus-visible,
input:focus-visible,
select:focus-visible,
label:focus-visible {

    outline:
        2px solid
        rgba(226, 29, 47, .55);

    outline-offset:
        3px;
}


/* =========================================================
   RESPONSIVE - 1050px
========================================================= */

@media (max-width: 1050px) {

    .auth-page {

        gap: 25px;
    }


    .security-title h1 {

        font-size:
            clamp(34px, 5vw, 52px);
    }


    .security-visual {

        height: 240px;
    }


    .radar {

        width: 210px;
        height: 210px;
    }
}


/* =========================================================
   RESPONSIVE - 900px
========================================================= */

@media (max-width: 900px) {

    .auth-page {

        grid-template-columns:
            1fr;

        width:
            min(560px, 92%);
    }


    .security-panel {

        display:
            none;
    }


    .auth-section {

        padding-bottom:
            30px;
    }


    .auth-page {

        min-height:
            calc(100vh - 82px);
    }
}


/* =========================================================
   RESPONSIVE - 600px
========================================================= */

@media (max-width: 600px) {

    .top-bar {

        height: 70px;

        padding:
            0 20px;
    }


    .brand strong {

        font-size:
            16px;
    }


    .brand span {

        font-size:
            7px;
    }


    .brand-icon {

        width: 39px;
        height: 39px;
    }


    .theme-toggle {

        width: 40px;
        height: 40px;
    }


    .auth-page {

        width:
            94%;

        padding:
            15px 0 30px;
    }


    .auth-card {

        border-radius:
            20px;
    }


    .auth-card-top {

        padding:
            20px;
    }


    .auth-form {

        padding:
            24px 18px;
    }


    .form-row {

        grid-template-columns:
            1fr;

        gap: 0;
    }


    .form-heading h2 {

        font-size:
            25px;
    }


    .security-notice {

        padding:
            13px;
    }


    .security-notice span {

        font-size:
            9px;

        line-height:
            1.9;
    }


    .license-upload {

        align-items:
            flex-start;

        flex-wrap:
            wrap;
    }


    .upload-info {

        padding-top:
            2px;
    }


    .upload-button {

        margin-right:
            52px;
    }


    .security-code-box {

        padding:
            30px 18px 22px;

        border-radius:
            22px;
    }


    .security-code-title {

        font-size:
            21px;
    }


    .security-code-description {

        font-size:
            11px;
    }


    .security-code-display {

        padding:
            17px 10px;
    }


    .security-code-display span {

        font-size:
            18px;

        letter-spacing:
            1px;
    }


    .security-code-actions {

        flex-direction:
            column;
    }


    .security-code-actions button {

        width:
            100%;
    }


    .toast {

        left:
            20px;

        right:
            20px;

        bottom:
            20px;

        width:
            auto;
    }
}


/* =========================================================
   RESPONSIVE - 450px
========================================================= */

@media (max-width: 450px) {

    .auth-page {

        width:
            96%;
    }


    .auth-card {

        border-radius:
            18px;
    }


    .auth-card-top {

        padding:
            17px;
    }


    .auth-form {

        padding:
            22px 15px;
    }


    .input-box input,
    .input-box select {

        height:
            46px;

        font-size:
            11px;
    }


    .main-btn {

        height:
            50px;
    }


    .license-upload {

        gap:
            10px;

        padding:
            11px;
    }


    .upload-info span {

        font-size:
            7px;
    }


    .upload-button {

        margin-right:
            0;

        margin-top:
            2px;

        width:
            100%;

        text-align:
            center;
    }


    .security-notice {

        gap:
            9px;

        padding:
            12px;
    }


    .security-notice i {

        width:
            29px;

        min-width:
            29px;

        height:
            29px;

        font-size:
            14px;
    }


    .security-notice span {

        font-size:
            8.5px;
    }
}


/* =========================================================
   RESPONSIVE - 400px
========================================================= */

@media (max-width: 400px) {

    .top-bar {

        padding:
            0 15px;
    }


    .brand {

        gap:
            8px;
    }


    .brand strong {

        font-size:
            14px;
    }


    .brand span {

        letter-spacing:
            1px;

        font-size:
            6px;
    }


    .auth-card-top {

        padding:
            15px;
    }


    .auth-form {

        padding:
            20px 13px;
    }


    .form-heading {

        margin-bottom:
            18px;
    }


    .form-heading h2 {

        font-size:
            23px;
    }


    .form-heading p {

        font-size:
            10px;
    }


    .file-upload-label {

        min-height:
            65px;

        font-size:
            10px;
    }


    .security-code-icon {

        width:
            68px;

        height:
            68px;
    }


    .security-code-icon i {

        font-size:
            30px;
    }


    .security-code-title {

        font-size:
            19px;
    }
}


/* =========================================================
   VERY SMALL DEVICES
========================================================= */

@media (max-width: 340px) {

    .auth-form {

        padding:
            18px 11px;
    }


    .auth-card-top {

        padding:
            14px;
    }


    .auth-card-top small {

        font-size:
            9px;
    }


    .security-notice span {

        font-size:
            8px;
    }


    .main-btn {

        font-size:
            11px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        scroll-behavior:
            auto !important;

        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;
    }
}
```


/* Home return action */
.home-return{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid rgba(255,255,255,.16);border-radius:12px;color:#fff;text-decoration:none;font-size:12px;font-weight:700;background:rgba(255,255,255,.06);backdrop-filter:blur(12px);transition:.2s ease}.home-return:hover{transform:translateY(-2px);background:rgba(239,27,32,.16);border-color:rgba(239,27,32,.55);color:#fff}.home-return i{font-size:16px}.light-mode .home-return,body.light-mode .home-return{background:#fff;color:#172033;border-color:#d8e0e8;box-shadow:0 8px 22px rgba(15,23,42,.08)}


/* V11 - لینک بازگشت به صفحه اصلی کنار فراموشی رمز */
.login-quick-links{
    display:flex;
    align-items:center;
    gap:10px;
}
.login-home-link{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:6px 10px;
    border:1px solid rgba(239,27,32,.30);
    border-radius:9px;
    background:linear-gradient(135deg,rgba(239,27,32,.12),rgba(239,27,32,.03));
    color:var(--text);
    text-decoration:none;
    font-size:10px;
    font-weight:700;
    line-height:1;
    transition:.2s ease;
}
.login-home-link i{
    color:var(--primary);
    font-size:14px;
}
.login-home-link:hover{
    transform:translateY(-1px);
    border-color:rgba(239,27,32,.60);
    background:rgba(239,27,32,.12);
}
.light-mode .login-home-link, body.light-mode .login-home-link{
    color:#172033;
    background:linear-gradient(135deg,#fff7f7,#fff);
    border-color:rgba(239,27,32,.32);
    box-shadow:0 5px 14px rgba(15,23,42,.06);
}
@media(max-width:520px){
    .form-options{align-items:flex-start;gap:10px;flex-wrap:wrap;}
    .login-quick-links{gap:7px;}
    .login-home-link{padding:6px 8px;}
}


/* FARASOO V69 — authentication is always light */
html,body,body.light{background:#fff!important;color:#24344a!important}
body.light .security-bg,body.light .security-bg:before,body.light .grid-lines,body.light .scan-line{opacity:.06!important}
body.light .top-bar{background:#fff!important;border-bottom:1px solid #e2e8ef!important;color:#24344a!important}
body.light .auth-card,body.light .auth-section,body.light .login-card,body.light .form-card{background:#fff!important;color:#24344a!important;border-color:#dce5ee!important;box-shadow:0 16px 45px rgba(40,60,85,.08)!important}
body.light input,body.light select,body.light textarea{background:#f8fafc!important;color:#24344a!important;border-color:#d4e0ea!important}
