/* ========================================
   GUARDTECH ADMIN — AUTH (2026)
   Dark command-center + orange brand
   ======================================== */

:root {
    --auth-bg: #07111f;
    --auth-surface: rgba(15, 23, 42, 0.78);
    --auth-text: #f8fafc;
    --auth-muted: #94a3b8;
    --auth-border: rgba(148, 163, 184, 0.18);
    --auth-primary: #ff6a00;
    --auth-primary-hover: #ff8124;
    --auth-primary-glow: rgba(255, 106, 0, 0.38);
    --auth-brand-bg: #020617;
    --auth-accent: #ff6a00;
    --auth-accent-2: #fb923c;
    --auth-radius: 22px;
    --auth-radius-sm: 14px;
    --auth-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --auth-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.auth-body {
    margin: 0;
    font-family: var(--auth-font);
    color: var(--auth-text);
    background: var(--auth-bg);
    -webkit-font-smoothing: antialiased;
}

.auth-shell {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
}

/* ---- Brand panel (left) ---- */
.auth-brand {
    position: relative;
    flex: 0 0 48%;
    max-width: 640px;
    background: var(--auth-brand-bg);
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.auth-brand__mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 12% 8%, rgba(255, 106, 0, 0.28) 0%, transparent 55%),
        radial-gradient(ellipse 50% 45% at 92% 88%, rgba(14, 165, 233, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse 40% 35% at 70% 20%, rgba(99, 102, 241, 0.16) 0%, transparent 50%),
        linear-gradient(165deg, #020617 0%, #07111f 48%, #0b1220 100%);
    pointer-events: none;
}

.auth-brand__mesh::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse 80% 70% at 40% 30%, #000 20%, transparent 75%);
    animation: authGridDrift 28s linear infinite;
}

@keyframes authGridDrift {
    from { background-position: 0 0, 0 0; }
    to { background-position: 42px 42px, 42px 42px; }
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    opacity: 0.55;
}

.auth-orb--1 {
    width: 280px;
    height: 280px;
    background: rgba(255, 106, 0, 0.35);
    top: -80px;
    left: -60px;
    animation: authFloat 12s ease-in-out infinite;
}

.auth-orb--2 {
    width: 220px;
    height: 220px;
    background: rgba(56, 189, 248, 0.22);
    bottom: 8%;
    right: -50px;
    animation: authFloat 16s ease-in-out infinite reverse;
}

.auth-orb--3 {
    width: 140px;
    height: 140px;
    background: rgba(251, 146, 60, 0.25);
    top: 42%;
    left: 38%;
    animation: authFloat 10s ease-in-out infinite 1s;
}

@keyframes authFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(18px, -22px) scale(1.08); }
}

.auth-brand__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    padding: 3rem 3.25rem;
}

.auth-brand__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 1.5rem;
}

.auth-brand__logo-img {
    display: block;
    max-width: min(100%, 134px);
    width: auto;
    height: auto;
    margin-inline: auto;
    object-fit: contain;
}

.auth-brand__logo-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6a00, #fb923c);
    border-radius: 14px;
    font-size: 1.15rem;
    box-shadow: 0 10px 28px rgba(255, 106, 0, 0.45);
}

.auth-brand__logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.auth-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    margin-bottom: 1.35rem;
    padding: 0.35rem 0.75rem 0.35rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.25);
}

.auth-status__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    animation: authPulse 2s ease-out infinite;
}

@keyframes authPulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.auth-brand__headline {
    font-size: clamp(1.85rem, 3.2vw, 2.55rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.04em;
    margin: 0 0 1rem;
}

.auth-brand__desc {
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.68);
    margin: 0 0 2rem;
    max-width: 400px;
}

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

.auth-brand__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.9);
}

.auth-brand__features strong {
    display: block;
    font-weight: 700;
}

.auth-brand__features small {
    display: block;
    margin-top: 0.12rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
}

.auth-brand__feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.9rem;
    color: #fdba74;
    backdrop-filter: blur(8px);
}

.auth-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
}

.auth-stats div {
    padding: 0.85rem 0.75rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-stats span {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--auth-accent-2);
}

.auth-stats strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
}

.auth-brand__footer {
    margin-top: auto;
    padding-top: 2rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.38);
}

/* ---- Form panel (right) ---- */
.auth-main {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background:
        radial-gradient(ellipse 60% 50% at 80% 0%, rgba(255, 106, 0, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 10% 100%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
        #07111f;
}

.auth-lang {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.auth-lang a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-lang a:hover,
.auth-lang a.is-active {
    color: #ff6a00;
}

.auth-lang__sep {
    opacity: 0.4;
}

.auth-main__inner {
    width: 100%;
    max-width: 440px;
}

.auth-mobile-logo {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--auth-text);
}

.auth-mobile-logo__img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.auth-mobile-logo__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6a00, #fb923c);
    color: #fff;
    border-radius: 12px;
    font-size: 1rem;
}

/* ---- Card ---- */
.auth-card {
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    box-shadow: var(--auth-shadow);
    padding: 2.15rem 2rem 1.6rem;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    animation: authFadeUp 0.55s ease both;
}

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

.auth-card__header {
    margin-bottom: 1.75rem;
}

.auth-card__eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--auth-primary);
    background: rgba(255, 106, 0, 0.12);
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    margin: 0 0 0.85rem;
}

.auth-card__title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin: 0 0 0.4rem;
    color: var(--auth-text);
}

.auth-card__subtitle {
    font-size: 0.92rem;
    color: var(--auth-muted);
    margin: 0;
    line-height: 1.5;
}

/* ---- Alert ---- */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-radius: var(--auth-radius-sm);
    font-size: 0.875rem;
    line-height: 1.45;
    margin-bottom: 1.25rem;
}

.auth-alert--error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fecaca;
}

.auth-alert--error i {
    margin-top: 0.1rem;
    flex-shrink: 0;
}

/* ---- Fields ---- */
.auth-field {
    margin-bottom: 1.15rem;
}

.auth-field__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.45rem;
}

.auth-field__wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-field__icon {
    position: absolute;
    left: 0.95rem;
    color: var(--auth-muted);
    font-size: 0.85rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.auth-field__input {
    width: 100%;
    height: 50px;
    padding: 0 2.75rem 0 2.65rem;
    font-family: var(--auth-font);
    font-size: 0.92rem;
    color: var(--auth-text);
    background: rgba(2, 6, 23, 0.55);
    border: 1.5px solid var(--auth-border);
    border-radius: var(--auth-radius-sm);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-field__input::placeholder {
    color: #64748b;
    font-size: 0.8125rem;
    opacity: 0.9;
}

.auth-field__input:hover {
    border-color: rgba(148, 163, 184, 0.35);
}

.auth-field__input:focus {
    background: rgba(2, 6, 23, 0.8);
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.16);
}

.auth-field__wrap:focus-within .auth-field__icon {
    color: var(--auth-primary);
}

.auth-field__toggle {
    position: absolute;
    right: 0.5rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--auth-muted);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.auth-field__toggle:hover {
    color: var(--auth-text);
    background: rgba(255, 255, 255, 0.06);
}

/* ---- Checkbox ---- */
.auth-form__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    user-select: none;
}

.auth-checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.auth-checkbox__box {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--auth-border);
    border-radius: 5px;
    background: rgba(2, 6, 23, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.auth-checkbox__box::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    margin-top: -2px;
    transition: transform 0.15s ease;
}

.auth-checkbox input:checked + .auth-checkbox__box {
    background: var(--auth-primary);
    border-color: var(--auth-primary);
}

.auth-checkbox input:checked + .auth-checkbox__box::after {
    transform: rotate(45deg) scale(1);
}

.auth-checkbox input:focus-visible + .auth-checkbox__box {
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.28);
}

.auth-checkbox__label {
    font-size: 0.875rem;
    color: var(--auth-muted);
}

/* ---- Submit ---- */
.auth-submit {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: var(--auth-font);
    font-size: 0.98rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ff6a00 0%, #ea580c 100%);
    border: none;
    border-radius: var(--auth-radius-sm);
    cursor: pointer;
    box-shadow: 0 10px 28px var(--auth-primary-glow);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px var(--auth-primary-glow);
    filter: brightness(1.06);
}

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

.auth-submit i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.auth-submit:hover i {
    transform: translateX(3px);
}

.auth-roles {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1.35rem;
    font-size: 0.75rem;
    color: var(--auth-muted);
}

.auth-roles em {
    font-style: normal;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--auth-border);
    color: #cbd5e1;
    font-weight: 600;
}

/* ---- Card footer ---- */
.auth-card__footer {
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--auth-border);
    text-align: center;
}

.auth-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--auth-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

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

.auth-main__note {
    margin: 1.25rem 0 0;
    text-align: center;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.5;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .auth-brand {
        display: none;
    }

    .auth-mobile-logo {
        display: flex;
    }

    .auth-main {
        padding: 1.5rem 1rem;
    }

    .auth-card {
        padding: 1.75rem 1.4rem 1.25rem;
    }
}

@media (max-width: 400px) {
    .auth-card__title {
        font-size: 1.45rem;
    }

    .auth-field__input {
        height: 48px;
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-orb,
    .auth-brand__mesh::after,
    .auth-status__dot,
    .auth-card {
        animation: none;
    }
}
