/* ============================================================
   APADANA ADMIN PANEL — AUTHENTICATION
   ============================================================ */


/* ============================================================
   01. FONTS
   ============================================================ */

@font-face {
    font-family: YekanBakh;
    src: url('../fonts/yekanBakh/woff2/YekanBakhFaNum-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: YekanBakh;
    src: url('../fonts/yekanBakh/woff2/YekanBakhFaNum-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: YekanBakh;
    src: url('../fonts/yekanBakh/woff2/YekanBakhFaNum-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: YekanBakh;
    src: url('../fonts/yekanBakh/woff2/YekanBakhFaNum-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}


/* ============================================================
   02. ROOT VARIABLES
   ============================================================ */

:root {
    --primary: #a21c43;
    --primary-2: #cf3d67;

    --ink: #1e2430;
    --muted: #768096;

    --soft: #f5f7fb;
    --line: #e7eaf0;
    --white: #fff;

    --shadow: 0 24px 70px rgba(28, 37, 54, .16);
}


/* ============================================================
   03. GLOBAL / BASE
   ============================================================ */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: YekanBakh, Tahoma, sans-serif;
    background: #f4f6f9;
    color: var(--ink);
}

body {
    overflow-x: hidden;
}


/* ============================================================
   04. AUTHENTICATION LAYOUT
   ============================================================ */

.admin-auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    background: linear-gradient(
        135deg,
        #f9fafc,
        #eef2f7
    );
}


/* ============================================================
   05. AUTHENTICATION — VISUAL PANEL
   ============================================================ */

.admin-auth-visual {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(255, 255, 255, .16),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #76142f 0%,
            #a21c43 46%,
            #d14b6e 100%
        );
    padding: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}


/* ============================================================
   06. AUTH VISUAL — DECORATIVE CIRCLES
   ============================================================ */

.admin-auth-visual:before,
.admin-auth-visual:after {
    content: "";
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .15);
    animation: float 12s ease-in-out infinite;
}

.admin-auth-visual:before {
    width: 560px;
    height: 560px;
    top: -190px;
    left: -180px;
}

.admin-auth-visual:after {
    width: 430px;
    height: 430px;
    bottom: -160px;
    right: -140px;
    animation-delay: -4s;
}


/* ============================================================
   07. AUTH ORBIT
   ============================================================ */

.auth-orbit {
    position: absolute;
    width: 520px;
    height: 520px;
    border: 1px dashed rgba(255, 255, 255, .22);
    border-radius: 50%;
    animation: spin 28s linear infinite;
}

.auth-orbit i {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, .09);
}

.auth-orbit i:nth-child(1) {
    top: 10%;
    right: 17%;
}

.auth-orbit i:nth-child(2) {
    bottom: 12%;
    left: 15%;
}


/* ============================================================
   08. AUTH SHOWCASE
   ============================================================ */

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


/* ============================================================
   09. BRAND LOCKUP
   ============================================================ */

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.brand-mark img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.brand-title {
    font-weight: 900;
    font-size: 26px;
    line-height: 1;
}

.brand-subtitle {
    opacity: .7;
    font-size: 12px;
    margin-top: 6px;
}


/* ============================================================
   10. SHOWCASE CARD
   ============================================================ */

.showcase-card {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(18px);
    border-radius: 28px;
    padding: 26px;
    box-shadow: 0 24px 60px rgba(60, 0, 20, .18);
    animation: cardIn .9s both;
}

.showcase-card h1 {
    font-size: 40px;
    line-height: 1.35;
    margin: 0 0 16px;
}

.showcase-card p {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    line-height: 2;
}


/* ============================================================
   11. SHOWCASE GRID
   ============================================================ */

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 22px;
}

.showcase-chip {
    padding: 15px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .12);
    text-align: center;
    font-size: 13px;
    transition: .35s;
}

.showcase-chip:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, .16);
}

.showcase-number {
    font-size: 26px;
    font-weight: 900;
    display: block;
    margin-bottom: 4px;
}


/* ============================================================
   12. AUTHENTICATION — FORM PANEL
   ============================================================ */

.admin-auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px;
}

.auth-shell {
    width: min(490px, 100%);
}


/* ============================================================
   13. AUTH CARD
   ============================================================ */

.auth-card {
    background: #fff;
    border: 1px solid rgba(30, 36, 48, .05);
    border-radius: 30px;
    box-shadow: var(--shadow);
    padding: 34px;
    animation: panelIn .65s both;
}


/* ============================================================
   14. AUTH HEADER
   ============================================================ */

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

.auth-kicker {
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-title {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 900;
    margin: 0;
}

.auth-description {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.9;
    margin: 8px 0 0;
}

.auth-badge {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #fff2f6;
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 21px;
    flex: none;
}


/* ============================================================
   15. FORM FIELDS
   ============================================================ */

.field {
    margin-top: 10px;
}

.field label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.field-hint {
    font-size: 11px;
    color: var(--muted);
    font-weight: 400;
}

.field input {
    width: 100%;
    height: 38px;
    border: 1px solid var(--line);
    background: #fbfcfe;
    border-radius: 15px;
    padding: 0 15px;
    font: inherit;
    outline: none;
    transition: .25s;
    color: var(--ink);
}

.field input:focus {
    border-color: rgba(162, 28, 67, .5);
    box-shadow: 0 0 0 4px rgba(162, 28, 67, .08);
    background: #fff;
}


/* Regular field icons — right side */
.input-icon-wrap {
    position: relative;
}

.input-icon-wrap > i {
    position: absolute;
    right: 15px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa3b2;
    font-size: 14px;
    pointer-events: none;
    z-index: 2;
}

.input-icon-wrap input {
    padding-right: 42px;
    padding-left: 15px;
}

/* Password lock icon — right */
.password-wrap > i {
    right: 15px;
    left: auto;
}

/* Password input leaves room for lock + eye */
.password-wrap input {
    padding-right: 42px;
    padding-left: 82px;
}

/* Eye button — left */
.password-toggle {
    position: absolute;
    left: 42px;
    right: auto;
    top: 7px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #8a94a6;
    border-radius: 10px;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
}

.password-toggle:hover {
    color: var(--primary);
    background: #fff2f6;
}

.password-toggle i {
    position: static;
    transform: none;
    font-size: 14px;
}

/* Icon highlight when field is focused */
.input-icon-wrap:focus-within > i {
    color: var(--primary);
}


/* ============================================================
   AUTH NOTE ICON
   ============================================================ */

.auth-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.auth-note > i {
    flex: none;
    margin-top: 3px;
    font-size: 13px;
}


/* ============================================================
   SUBMIT BUTTON ICON
   ============================================================ */

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.auth-submit i {
    font-size: 14px;
}


/* ============================================================
   FOOTER BUTTON ICONS
   ============================================================ */

.auth-footer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-footer-btn i {
    font-size: 13px;
    flex: none;
}

/* ============================================================
   15.1 FORM GRID — TWO COLUMNS
   ============================================================ */

.auth-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 0;
}

.auth-form .field {
    margin-top: 16px;
}

/* Full-width elements */
.auth-form .auth-note,
.auth-form .auth-submit {
    grid-column: 1 / -1;
}

@media (max-width: 560px) {

    .auth-form {
        grid-template-columns: 1fr;
    }

    .auth-form .auth-note,
    .auth-form .auth-submit {
        grid-column: auto;
    }

    /* Your existing mobile rules */
    .admin-auth-visual {
        min-height: 250px;
    }

    .auth-orbit {
        width: 360px;
        height: 360px;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .showcase-chip {
        padding: 10px;
    }

    .brand-lockup {
        margin-bottom: 22px;
    }

    .showcase-card {
        padding: 20px;
    }

    .auth-card {
        border-radius: 24px;
        padding: 22px;
    }

    .auth-title {
        font-size: 26px;
    }
}

.auth-form .field-full {
    grid-column: 1 / -1;
}

/* ============================================================
   16. PASSWORD FIELD
   ============================================================ */

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-left: 82px;
}

.password-toggle {
    position: absolute;
    left: 7px;
    top: 4px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #8a94a6;
    border-radius: 10px;
    cursor: pointer;
}


/* ============================================================
   17. AUTH ACTIONS
   ============================================================ */

.auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    margin-bottom: 18px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    cursor: pointer;
}

.remember input {
    accent-color: var(--primary);
}


/* ============================================================
   18. AUTH SUBMIT BUTTON
   ============================================================ */

.auth-submit {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-2)
    );
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(162, 28, 67, .2);
    transition: .3s;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(162, 28, 67, .26);
}

.auth-submit:disabled {
    opacity: .65;
    cursor: wait;
    transform: none;
}


/* ============================================================
   19. AUTH FOOTER
   ============================================================ */

/* ============================================================
   19. AUTH FOOTER / NAVIGATION BUTTONS
   ============================================================ */

.auth-footer {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.auth-footer-btn {
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 13px;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-2)
    );

    color: #fff;
    text-decoration: none;

    font: inherit;
    font-size: 12px;
    font-weight: 700;

    box-shadow: 0 8px 20px rgba(162, 28, 67, .16);

    transition:
        transform .25s,
        box-shadow .25s;
}

.auth-footer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(162, 28, 67, .22);
}

.auth-footer-btn:active {
    transform: translateY(0);
}




/* ============================================================
   20. AUTH ALERTS / MESSAGES
   ============================================================ */

.auth-alert {
    display: none;
    padding: 13px 15px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 12px;
    line-height: 1.9;
}

.auth-alert.show {
    display: block;
    animation: shakeIn .4s;
}

.auth-alert.error {
    background: #fff1f1;
    color: #a52e2e;
    border: 1px solid #ffd8d8;
}

.auth-alert.success {
    background: #effbf5;
    color: #167447;
    border: 1px solid #cceedd;
}

.auth-note {
    margin-top: 16px;
    margin-bottom: 16px;
    background: #fff8ec;
    border: 1px solid #fde1b0;
    color: #9a671e;
    padding: 14px 15px;
    border-radius: 15px;
    font-size: 12px;
    line-height: 1.9;
}


/* ============================================================
   21. ANIMATIONS
   ============================================================ */

@keyframes float {
    50% {
        transform: translateY(16px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateX(-25px) scale(.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes shakeIn {
    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}


/* ============================================================
   22. RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 900px) {

    .admin-auth {
        grid-template-columns: 1fr;
    }

    .admin-auth-visual {
        min-height: 300px;
        padding: 28px;
    }

    .showcase-card h1 {
        font-size: 29px;
    }

    .showcase-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .admin-auth-panel {
        padding: 25px;
    }

    .auth-card {
        padding: 26px;
    }
}


/* ============================================================
   23. RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 560px) {

    .admin-auth-visual {
        min-height: 250px;
    }

    .auth-orbit {
        width: 360px;
        height: 360px;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .showcase-chip {
        padding: 10px;
    }

    .brand-lockup {
        margin-bottom: 22px;
    }

    .showcase-card {
        padding: 20px;
    }

    .auth-card {
        border-radius: 24px;
        padding: 22px;
    }

    .auth-title {
        font-size: 26px;
    }

    .auth-footer {
    grid-template-columns: 1fr;
}
}