

body{
    font-family: IRANSans, sans-serif;
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 200;
    src: url('../fonts/iransans/IRANSansWeb_UltraLight.ttf') format('truetype');
}
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/iransans/IRANSansWeb_Light.ttf') format('truetype');
}
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/iransans/IRANSansWeb.ttf') format('truetype');
}
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/iransans/IRANSansWeb_Medium.ttf') format('truetype');
}
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: bold;
    src: url('../fonts/iransans/IRANSansWeb_Bold.ttf') format('truetype');
}
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 900;
    src: url('../fonts/iransans/IRANSansWeb_Black.ttf') format('truetype');
}

.w_inherit{
    width: inherit;
}

/* ══════════════════════════════════════════════════════════════
   Signal / Broadcast identity tokens
   ══════════════════════════════════════════════════════════════ */
:root {
    --sig-ink: #0b1220;
    --sig-ink-2: #0e1730;
    --sig-panel: #121c33;
    --sig-cyan: #35e0d8;
    --sig-cyan-deep: #16b6c9;
    --sig-onair: #ff495f;
    --sig-onair-soft: rgba(255, 73, 95, 0.16);
    --sig-green: #34d399;
    --sig-haze: #8ea0bd;
    --sig-line: rgba(255, 255, 255, 0.09);
    --mono: ui-monospace, 'Cascadia Mono', 'SF Mono', 'Segoe UI Mono', Menlo, Consolas, monospace;
}

/* ══════════════════════════════════════════════════════════════
   Login — broadcast control room
   ══════════════════════════════════════════════════════════════ */
.signal-stage {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
    color-scheme: dark;
    background:
        radial-gradient(1100px 620px at 78% -8%, rgba(53, 224, 216, 0.14), transparent 60%),
        radial-gradient(900px 560px at 8% 108%, rgba(255, 73, 95, 0.12), transparent 55%),
        linear-gradient(160deg, var(--sig-ink-2) 0%, var(--sig-ink) 60%, #070c17 100%);
}

/* animated background layers */
.signal-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.signal-grid {
    position: absolute;
    inset: -2px;
    background-image:
        linear-gradient(var(--sig-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--sig-line) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
    mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
    opacity: 0.5;
}

@keyframes eq {
    0%, 100% { transform: scaleY(0.1); }
    50% { transform: scaleY(0.85); }
}

/* the console card */
.auth-console {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 940px;
    display: grid;
    grid-template-columns: 1.02fr 1fr;
    background: linear-gradient(180deg, rgba(20, 30, 54, 0.86), rgba(12, 19, 36, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
}

/* brand / monitor side */
.auth-brand {
    position: relative;
    padding: 3rem 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.06);
    background:
        radial-gradient(600px 300px at 80% 0%, rgba(53, 224, 216, 0.12), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.onair-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: #ffd7dc;
    background: var(--sig-onair-soft);
    border: 1px solid rgba(255, 73, 95, 0.45);
    margin-bottom: 2rem;
}

.onair-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sig-onair);
    box-shadow: 0 0 10px var(--sig-onair);
    animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

.auth-brand-mark {
    position: relative;
    width: 70px;
    height: 70px;
    margin-bottom: 1.6rem;
}

.auth-brand-logo {
    position: relative;
    z-index: 1;
    width: 70px;
    height: 70px;
    object-fit: contain;
    padding: 0.55rem;
    border-radius: 1rem;
    background: rgba(53, 224, 216, 0.1);
    border: 1px solid rgba(53, 224, 216, 0.28);
}

/* radiating broadcast pulse behind the mark */
.broadcast-pulse span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    margin: -35px 0 0 -35px;
    border: 1px solid var(--sig-cyan);
    border-radius: 50%;
    opacity: 0;
    animation: ring 3.2s ease-out infinite;
}

.broadcast-pulse span:nth-child(2) { animation-delay: 1.06s; }
.broadcast-pulse span:nth-child(3) { animation-delay: 2.13s; }

@keyframes ring {
    0% { transform: scale(0.5); opacity: 0.7; }
    100% { transform: scale(2.6); opacity: 0; }
}

.auth-brand-title {
    font-size: 1.7rem;
    font-weight: bold;
    color: #f4f8ff;
    margin-bottom: 0.65rem;
}

.auth-brand-subtitle {
    font-size: 0.95rem;
    line-height: 2;
    color: var(--sig-haze);
    margin-bottom: 2rem;
}

.auth-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.auth-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #d3ddec;
}

.auth-feature-list i {
    flex: 0 0 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sig-cyan);
    background: rgba(53, 224, 216, 0.1);
    border: 1px solid rgba(53, 224, 216, 0.22);
    border-radius: 0.7rem;
    font-size: 1rem;
}

/* form side */
.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.75rem;
}

.auth-form-inner {
    width: 100%;
    max-width: 340px;
}

.auth-eyebrow {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--sig-cyan);
    margin-bottom: 0.6rem;
}

.auth-form-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 0.9rem;
    background: rgba(53, 224, 216, 0.1);
    border: 1px solid rgba(53, 224, 216, 0.28);
    padding: 0.4rem;
    display: none;
}

.auth-form-title {
    font-size: 1.55rem;
    font-weight: bold;
    color: #f4f8ff;
    margin-bottom: 0.3rem;
}

.auth-form-subtitle {
    font-size: 0.88rem;
    color: var(--sig-haze);
    margin-bottom: 0;
}

.auth-label {
    font-weight: 500;
    font-size: 0.82rem;
    color: #c6d2e4;
    margin-bottom: 0.4rem;
}

.auth-input .input-group-text {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-inline-start: 0;
    color: var(--sig-haze);
}

.auth-input .form-control {
    color-scheme: dark;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-inline-end: 0;
    padding: 0.62rem 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    color: #eef3fb;
    box-shadow: none;
}

.auth-input .form-control::placeholder {
    color: #63718a;
}

.auth-input:focus-within .input-group-text,
.auth-input:focus-within .form-control {
    border-color: var(--sig-cyan);
    background: rgba(53, 224, 216, 0.06);
    box-shadow: 0 0 0 3px rgba(53, 224, 216, 0.12);
}

.auth-alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    margin-bottom: 1rem;
    border-radius: 0.7rem;
    font-size: 0.83rem;
    color: #ffd7dc;
    background: var(--sig-onair-soft);
    border: 1px solid rgba(255, 73, 95, 0.4);
}

.auth-submit {
    margin-top: 0.4rem;
    padding: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #052029;
    border: 0;
    border-radius: 0.8rem;
    background: linear-gradient(120deg, var(--sig-cyan) 0%, #67f0e6 100%);
    box-shadow: 0 14px 30px rgba(53, 224, 216, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.auth-submit:hover {
    color: #052029;
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 18px 38px rgba(53, 224, 216, 0.4);
}

.auth-submit i {
    margin-inline-start: 0.4rem;
}

@media (max-width: 767.98px) {
    .auth-console {
        grid-template-columns: 1fr;
        max-width: 440px;
    }

    .auth-brand {
        display: none;
    }

    .auth-form-logo {
        display: inline-block;
        margin-bottom: 0.9rem;
    }

    .auth-form-panel {
        padding: 2.5rem 1.75rem;
    }
}

/* ══════════════════════════════════════════════════════════════
   Dashboard — signal telemetry
   ══════════════════════════════════════════════════════════════ */
.dashboard .anim-up {
    opacity: 0;
    transform: translateY(14px);
    animation: up 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes up {
    to { opacity: 1; transform: translateY(0); }
}

.section-eyebrow {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
}

/* status ribbon (welcome banner) */
.status-ribbon {
    position: relative;
    border-radius: 1.1rem;
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    overflow: hidden;
    color: #eef3fb;
    background:
        radial-gradient(560px 220px at 88% -20%, rgba(53, 224, 216, 0.22), transparent 60%),
        linear-gradient(135deg, #142138 0%, #0e1830 60%, #0b1324 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.status-ribbon-hi {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.status-ribbon-sub {
    font-size: 0.88rem;
    color: var(--sig-haze);
    margin: 0;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.live-pill.is-live {
    color: #ffdde1;
    background: var(--sig-onair-soft);
    border: 1px solid rgba(255, 73, 95, 0.5);
}

.live-pill.is-idle {
    color: var(--sig-haze);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.live-pill .onair-dot {
    background: var(--sig-onair);
}

.live-pill.is-idle .onair-dot {
    background: var(--sig-haze);
    box-shadow: none;
    animation: none;
}

/* metric panels */
.metric {
    position: relative;
    height: 100%;
    border-radius: 1.1rem;
    padding: 1.25rem 1.35rem 1.35rem;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.metric::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background: var(--accent, var(--sig-cyan));
    opacity: 0.9;
}

.metric:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent, var(--sig-cyan)) 45%, var(--bs-border-color));
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.1rem;
}

.metric-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 0.8rem;
    font-size: 1.25rem;
    color: var(--accent, var(--sig-cyan));
    background: color-mix(in srgb, var(--accent, var(--sig-cyan)) 14%, transparent);
}

.metric-value {
    font-family: var(--mono);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--bs-emphasis-color);
    letter-spacing: -0.01em;
}

.metric-label {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--bs-secondary-color);
}

.metric-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent, var(--sig-cyan));
}

/* mini equalizer for the actively-broadcasting metric */
.metric-eq {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 22px;
}

.metric-eq i {
    width: 3px;
    border-radius: 2px;
    background: var(--accent, var(--sig-cyan));
    transform-origin: bottom;
    animation: eq 0.9s ease-in-out infinite;
}

.metric-eq i:nth-child(1) { height: 60%; animation-delay: -0.1s; }
.metric-eq i:nth-child(2) { height: 100%; animation-delay: -0.5s; }
.metric-eq i:nth-child(3) { height: 45%; animation-delay: -0.2s; }
.metric-eq i:nth-child(4) { height: 80%; animation-delay: -0.7s; }
.metric-eq i:nth-child(5) { height: 55%; animation-delay: -0.35s; }

/* dashboard cards */
.dashboard .card {
    border-radius: 1.1rem;
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.dashboard .card-eyebrow {
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
    display: block;
    margin-bottom: 0.15rem;
}

@media (prefers-reduced-motion: reduce) {
    .metric-eq i,
    .onair-dot,
    .broadcast-pulse span,
    .dashboard .anim-up {
        animation: none !important;
    }

    .dashboard .anim-up { opacity: 1; transform: none; }
}
