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

:root {
    --bg: #06130f;
    --card: rgba(10, 34, 28, 0.92);

    --primary: #20d6b2;
    --primary-dark: #0ea58e;

    --gold: #c7a65a;

    --text: #effffb;
    --muted: #78958e;
    --muted-light: #a8bbb6;

    --border: rgba(59, 221, 191, 0.13);
}

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

body {
    min-height: 100vh;

    font-family: "Vazirmatn", sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(32, 214, 178, 0.08),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(32, 214, 178, 0.05),
            transparent 28%
        ),
        var(--bg);
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font-family: inherit;
}


/* =========================
   HEADER
========================= */

.header {
    min-height: 70px;

    padding: 0 5%;

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

    border-bottom: 1px solid rgba(59, 221, 191, 0.08);

    background: rgba(4, 18, 14, 0.9);

    backdrop-filter: blur(18px);
}

.logo {
    display: flex;
    align-items: center;

    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;

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

    border-radius: 10px;

    background: var(--primary);

    color: #04251d;

    font-size: 17px;
    font-weight: 900;
}

.logo-text h2 {
    font-size: 14px;
    font-weight: 800;
}

.logo-text span {
    display: block;

    color: var(--muted);

    font-size: 8px;
}

.back-home {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    color: var(--muted-light);

    font-size: 10px;

    transition: 0.25s ease;
}

.back-home:hover {
    color: var(--primary);
}


/* =========================
   PAGE
========================= */

.login-page {
    min-height: calc(100vh - 70px);

    padding: 50px 20px;

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


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

.login-card {
    width: min(430px, 100%);

    padding: 38px;

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

    border-radius: 22px;

    background: var(--card);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.22);

    animation: fadeUp 0.7s ease both;
}

.login-icon {
    width: 58px;
    height: 58px;

    margin-bottom: 18px;

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

    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            rgba(32, 214, 178, 0.18),
            rgba(32, 214, 178, 0.04)
        );

    border: 1px solid rgba(32, 214, 178, 0.16);

    color: var(--primary);

    font-size: 22px;
    font-weight: 900;
}

.label {
    color: var(--primary);

    font-size: 9px;
    font-weight: 700;
}

.login-card h1 {
    font-size: 30px;

    line-height: 1.4;

    margin-top: 3px;
}

.subtitle {
    color: var(--muted);

    font-size: 10px;

    line-height: 2;

    margin: 5px 0 25px;
}


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

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;

    margin-bottom: 6px;

    color: #bdd0cb;

    font-size: 9px;
    font-weight: 600;
}

.field input {
    width: 100%;
    height: 45px;

    padding: 0 13px;

    outline: none;

    border: 1px solid rgba(59, 221, 191, 0.10);

    border-radius: 10px;

    background: rgba(3, 18, 14, 0.78);

    color: var(--text);

    font-size: 10px;

    transition: 0.25s ease;
}

.field input::placeholder {
    color: #4d665f;
}

.field input:focus {
    border-color: rgba(32, 214, 178, 0.45);

    box-shadow:
        0 0 0 3px rgba(32, 214, 178, 0.05);
}


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

.password-wrap {
    position: relative;
}

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

.toggle-password {
    position: absolute;

    left: 8px;
    top: 50%;

    transform: translateY(-50%);

    width: 30px;
    height: 30px;

    border-radius: 7px;

    color: #657e77;

    background: transparent;

    cursor: pointer;

    transition: 0.2s ease;
}

.toggle-password:hover {
    color: var(--primary);

    background: rgba(32, 214, 178, 0.05);
}


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

.login-options {
    margin: 3px 0 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.remember {
    display: flex;
    align-items: center;

    gap: 7px;

    color: #78958e;

    font-size: 8px;

    cursor: pointer;
}

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

    cursor: pointer;
}

.forgot {
    color: #617d76;

    font-size: 8px;

    transition: 0.2s ease;
}

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


/* =========================
   MESSAGE
========================= */

.form-message {
    display: none;

    padding: 10px 12px;

    margin-bottom: 13px;

    border-radius: 9px;

    font-size: 8px;

    line-height: 1.8;
}

.form-message.show {
    display: block;
}

.form-message.error {
    color: #ffc0c0;

    border: 1px solid rgba(255, 118, 118, 0.14);

    background: rgba(255, 118, 118, 0.05);
}

.form-message.success {
    color: #aff3d0;

    border: 1px solid rgba(94, 231, 173, 0.14);

    background: rgba(94, 231, 173, 0.05);
}


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

.submit-btn {
    width: 100%;
    height: 46px;

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

    gap: 9px;

    border-radius: 10px;

    background: var(--primary);

    color: #04251d;

    font-size: 10px;
    font-weight: 800;

    cursor: pointer;

    transition: 0.25s ease;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);

    box-shadow:
        0 10px 30px rgba(32, 214, 178, 0.14);
}

.submit-btn:disabled {
    opacity: 0.65;

    cursor: not-allowed;
}

.loader {
    display: none;

    width: 13px;
    height: 13px;

    border-radius: 50%;

    border: 2px solid rgba(4, 37, 29, 0.25);

    border-top-color: #04251d;

    animation: spin 0.7s linear infinite;
}

.submit-btn.loading .loader {
    display: block;
}


/* =========================
   REGISTER
========================= */

.register-link {
    margin-top: 18px;

    text-align: center;

    color: #58736c;

    font-size: 8px;
}

.register-link a {
    margin-right: 4px;

    color: var(--primary);

    font-weight: 700;
}


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

@keyframes fadeUp {

    from {
        opacity: 0;

        transform: translateY(18px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}

@keyframes spin {

    to {
        transform: rotate(360deg);
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 520px) {

    .header {
        padding: 0 18px;
    }

    .logo-text {
        display: none;
    }

    .login-page {
        padding: 28px 12px;
    }

    .login-card {
        padding: 25px 20px;

        border-radius: 17px;
    }

}
/* =========================================================
   ALMAHDI — MASTER VISUAL THEME
   GEOMETRIC BACKGROUND + GREEN PREMIUM STYLE
   بدون تغییر Layout / Icon Size / Icon Position
========================================================= */


/* =========================================================
   COLORS
========================================================= */

:root {
    --master-bg: #f3faf7;
    --master-primary: #18b98d;
    --master-primary-dark: #0d8f6d;
    --master-text: #12382d;
    --master-muted: #648078;
    --master-border: rgba(24,185,141,.15);
}


/* =========================================================
   BASE
========================================================= */

html {
    background: var(--master-bg) !important;
}

body {

    background-color:
        var(--master-bg) !important;

    color:
        var(--master-text);

    position: relative;

    overflow-x: hidden;
}


/* =========================================================
   ⭐ GEOMETRIC BACKGROUND
   این بخش طرح اصلی را به همه صفحات می‌دهد
========================================================= */

body::before {

    content: "";

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    z-index: 0;

    opacity: .22;

    background-image:

        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cg fill='none' stroke='%23117e5f' stroke-width='0.8' opacity='.72'%3E%3Cpath d='M22.5 0L45 13L67.5 0L90 13L90 39L67.5 52L67.5 78L45 90L22.5 78L0 90L0 64L22.5 51L22.5 26L0 13L22.5 0Z'/%3E%3Cpath d='M22.5 26L45 39L67.5 26L67.5 52L45 65L22.5 52Z'/%3E%3Cpath d='M0 39L22.5 26L45 39L45 65L22.5 78L0 65Z'/%3E%3Cpath d='M45 13L45 39L67.5 52L90 39'/%3E%3Cpath d='M22.5 51L45 39L67.5 52'/%3E%3C/g%3E%3C/svg%3E"),

        radial-gradient(
            circle at 15% 10%,
            rgba(24,185,141,.10),
            transparent 28%
        ),

        radial-gradient(
            circle at 85% 85%,
            rgba(24,185,141,.08),
            transparent 30%
        );

    background-repeat:
        repeat,
        no-repeat,
        no-repeat;

    background-size:
        135px 135px,
        auto,
        auto;

    background-position:
        center top,
        top left,
        bottom right;
}


/* =========================================================
   صفحه‌های اصلی را شفاف می‌کنیم
   تا هندسه پشتشان دیده شود
   این بخش به کارت‌ها دست نمی‌زند
========================================================= */

main,
.page,
.main,
.container,
.gallery-container,
.login-page,
.content,
.site-main,
.main-content {

    background:
        transparent !important;
}


/* =========================================================
   CONTENT ABOVE BACKGROUND
========================================================= */

body > * {

    position: relative;
    z-index: 1;
}


/* =========================================================
   MASTER VARIABLES
========================================================= */

body {

    --primary:
        var(--master-primary);

    --primary-dark:
        var(--master-primary-dark);

    --text:
        var(--master-text);

    --muted:
        var(--master-muted);

    --border:
        var(--master-border);
}


/* =========================================================
   HEADER
========================================================= */

.header,
.topbar,
.site-header {

    background:
        rgba(248,253,250,.90) !important;

    border-color:
        rgba(24,185,141,.13) !important;

    backdrop-filter:
        blur(18px);
}


/* =========================================================
   NAV
========================================================= */

.header nav a,
.nav a,
.site-nav a,
.sidebar-nav a {

    color:
        #58756b !important;
}

.header nav a:hover,
.header nav a.active,
.nav a:hover,
.nav a.active,
.site-nav a:hover,
.site-nav a.active,
.sidebar-nav a:hover,
.sidebar-nav a.active {

    color:
        var(--master-primary) !important;
}


/* =========================================================
   CARDS
   اندازه و جای آیکون‌ها دست نخورده
========================================================= */

.card,
.panel,
.stat-card,
.category-card,
.image-card,
.login-card,
.featured,
.upload-panel,
.toolbar,
.posts-panel,
.welcome-card,
.about-card,
.program-card,
.contact-card,
.servant-card,
.gallery-item,
.memories-section,
.hero-card,
.modal-card,
.modalbox {

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.96),
            rgba(237,248,243,.96)
        ) !important;

    border-color:
        var(--master-border) !important;

    box-shadow:
        0 18px 50px
        rgba(4,58,44,.10) !important;
}


/* =========================================================
   GREEN ELEMENTS
========================================================= */

.primary-btn,
.green-btn,
.read,
.view-gallery,
.search button {

    background:
        var(--master-primary) !important;

    color:
        #ffffff !important;
}


.primary-btn:hover,
.green-btn:hover,
.read:hover {

    background:
        var(--master-primary-dark) !important;
}


/* =========================================================
   LABELS / TITLES
========================================================= */

.label,
.eyebrow,
.tag,
.hero-small,
.category-count,
.cardtext label,
.category-info h3,
.section-heading > span,
.section-heading h2 span {

    color:
        var(--master-primary) !important;
}


/* =========================================================
   INPUTS
========================================================= */

input,
textarea,
select {

    background:
        rgba(250,254,252,.96) !important;

    color:
        var(--master-text) !important;

    border-color:
        var(--master-border) !important;
}


/* =========================================================
   ICONS
   ⚠️ فقط رنگ
   ❌ بدون width
   ❌ بدون height
   ❌ بدون position
   ❌ بدون margin
   ❌ بدون padding
========================================================= */

.logo-icon,
.brand-mark,
.brand-icon,
.quick-icon,
.servant-avatar,
.login-icon,
.admin-avatar,
.avatar,
.nav-icon,
.search-btn,
.menu-btn {

    color:
        var(--master-primary) !important;
}


/* =========================================================
   ICON BOX
========================================================= */

.logo-icon,
.brand-mark,
.brand-icon,
.quick-icon,
.servant-avatar,
.login-icon,
.admin-avatar,
.avatar {

    background:
        rgba(24,185,141,.09) !important;

    border-color:
        rgba(24,185,141,.18) !important;
}


/* =========================================================
   HERO
========================================================= */

.hero {

    border-color:
        rgba(24,185,141,.16) !important;

    box-shadow:
        0 25px 75px
        rgba(3,55,42,.12) !important;
}


/* =========================================================
   TEXT
========================================================= */

.hero p,
.cardtext p,
.category-info p,
.topbar p,
.section-heading p,
.panel > small,
.feature-text p,
.modalbody p,
.modalbody div {

    color:
        var(--master-muted) !important;
}


/* =========================================================
   SECONDARY BUTTONS
========================================================= */

.ghost-btn,
.back-btn,
.small-btn,
.secondary-btn {

    border-color:
        var(--master-border) !important;

    color:
        var(--master-text) !important;
}


/* =========================================================
   GALLERY / IMAGE
========================================================= */

.category-card,
.image-card,
.gallery-item {

    overflow: hidden;
}


/* =========================================================
   FOOTER
========================================================= */

footer,
.footer {

    background:
        rgba(243,250,247,.90) !important;

    border-color:
        rgba(24,185,141,.12) !important;
}


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

.modal {

    background:
        rgba(3,24,17,.58) !important;

    backdrop-filter:
        blur(9px);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 720px) {

    body::before {

        opacity:
            .16;

        background-size:
            95px 95px,
            auto,
            auto;
    }
}


/* =========================================================
   ⭐ MUHARRAM MODE
   body class="moharram"
========================================================= */

body.moharram {

    --master-bg:
        #020604;

    --master-primary:
        #35ff9a;

    --master-primary-dark:
        #11c96e;

    --master-text:
        #effff6;

    --master-muted:
        #88a095;

    --master-border:
        rgba(53,255,154,.15);

    background-color:
        #020604 !important;
}


/* =========================================================
   MUHARRAM BACKGROUND
   قرمز انتزاعی، نه واقعی
========================================================= */

body.moharram::before {

    opacity:
        .36;

    background-image:

        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cg fill='none' stroke='%2335ff9a' stroke-width='.7' opacity='.20'%3E%3Cpath d='M22.5 0L45 13L67.5 0L90 13L90 39L67.5 52L67.5 78L45 90L22.5 78L0 90L0 64L22.5 51L22.5 26L0 13L22.5 0Z'/%3E%3Cpath d='M22.5 26L45 39L67.5 26L67.5 52L45 65L22.5 52Z'/%3E%3C/g%3E%3C/svg%3E"),

        radial-gradient(
            ellipse 100px 50px at 8% 18%,
            rgba(170,12,30,.58),
            transparent 72%
        ),

        radial-gradient(
            ellipse 55px 100px at 82% 12%,
            rgba(210,18,40,.42),
            transparent 70%
        ),

        radial-gradient(
            ellipse 110px 55px at 68% 76%,
            rgba(160,8,28,.46),
            transparent 72%
        ),

        radial-gradient(
            ellipse 50px 100px at 18% 86%,
            rgba(190,15,38,.38),
            transparent 70%
        ),

        #020604;

    background-size:
        135px 135px,
        380px 320px,
        420px 360px,
        500px 390px,
        430px 370px;

    background-repeat:
        repeat;
}


/* =========================================================
   MUHARRAM CARDS
========================================================= */

body.moharram .card,
body.moharram .panel,
body.moharram .stat-card,
body.moharram .category-card,
body.moharram .image-card,
body.moharram .login-card,
body.moharram .featured,
body.moharram .upload-panel,
body.moharram .toolbar,
body.moharram .posts-panel,
body.moharram .welcome-card,
body.moharram .about-card,
body.moharram .program-card,
body.moharram .contact-card,
body.moharram .servant-card,
body.moharram .gallery-item,
body.moharram .memories-section,
body.moharram .hero-card,
body.moharram .modal-card,
body.moharram .modalbox {

    background:
        rgba(5,14,10,.90) !important;

    color:
        #effff6 !important;

    border-color:
        rgba(53,255,154,.14) !important;
}


/* =========================================================
   MUHARRAM HEADER
========================================================= */

body.moharram .header,
body.moharram .topbar,
body.moharram .site-header {

    background:
        rgba(2,8,5,.92) !important;

    border-color:
        rgba(53,255,154,.14) !important;
}


/* =========================================================
   MUHARRAM GREEN
========================================================= */

body.moharram .label,
body.moharram .eyebrow,
body.moharram .tag,
body.moharram .hero-small,
body.moharram .category-count,
body.moharram .cardtext label {

    color:
        #35ff9a !important;
}


/* =========================================================
   MOBILE MUHARRAM
========================================================= */

@media (max-width: 720px) {

    body.moharram::before {

        opacity:
            .27;

        background-size:
            95px 95px,
            240px 210px,
            280px 240px,
            320px 260px,
            280px 240px;
    }
}