﻿/* =========================================================
   AVAGEN RED + BLACK CYBER THEME
   ONLY CSS — NO CLASS/ID CHANGES REQUIRED
========================================================= */

:root {
    --bg-black: #050505;
    --bg-dark: #0d0d0d;
    --card: #140000;
    --red: #ff1a1a;
    --red-dark: #8b0000;
    --red-light: #ff4d4d;
    --border: #ff2a2a;
    --text: #ffffff;
    --muted: #b8b8b8;
    --input: #111111;
    --glow: 0 0 15px rgba(255,0,0,.45);
}

/* =========================================================
   BODY
========================================================= */

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Rajdhani',sans-serif;
    background: radial-gradient(circle at top,#520000 0%,#120000 35%,#000 100%);
    color: var(--text);
    min-height: 100vh;
    position: relative;
}

/* =========================================================
   BACKGROUND EFFECTS
========================================================= */

.nx-bg {
    position: fixed;
    inset: 0;
    background: linear-gradient(rgba(255,0,0,.06) 1px,transparent 1px), linear-gradient(90deg,rgba(255,0,0,.06) 1px,transparent 1px);
    background-size: 50px 50px;
    z-index: -4;
}

.nx-grid {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,0,0,.08) 0%, transparent 70%);
    z-index: -3;
}

.nx-dot {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    position: fixed;
    /*background: rgba(255,0,0,.10);*/
    filter: blur(80px);
    z-index: -2;
    animation: float 6s infinite ease-in-out;
}

    .nx-dot:nth-child(1) {
        top: 10%;
        left: 10%;
    }

    .nx-dot:nth-child(2) {
        bottom: 10%;
        right: 10%;
    }

    .nx-dot:nth-child(3) {
        top: 50%;
        left: 50%;
    }

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* =========================================================
   SCAN LINE
========================================================= */

.nx-scan {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient( to bottom, transparent 0%, rgba(255,0,0,.05) 50%, transparent 100%);
    animation: scan 7s linear infinite;
    z-index: -1;
}

@keyframes scan {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* =========================================================
   PAGE WRAPPER
========================================================= */

.nx-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 15px;
}

.nx-wrapper {
    width: 100%;
    max-width: 520px;
}

/* =========================================================
   STATUS BAR
========================================================= */

.nx-status-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #ffb3b3;
    letter-spacing: 2px;
    font-family: 'Share Tech Mono',monospace;
}

.nx-status-dot {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nx-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00ff55;
    box-shadow: 0 0 10px #00ff55;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: .5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================================================
   CARD
========================================================= */

.nx-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(255,0,0,.35);
    border-radius: 10px;
    padding: 45px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(255,0,0,.15), inset 0 0 20px rgba(255,0,0,.08);
    backdrop-filter: blur(8px);
}

/* =========================================================
   CORNERS
========================================================= */

.nx-corner {
    width: 22px;
    height: 22px;
    position: absolute;
    border-color: #ff2a2a;
    border-style: solid;
}

    .nx-corner.tl {
        top: 0;
        left: 0;
        border-width: 2px 0 0 2px;
    }

    .nx-corner.tr {
        top: 0;
        right: 0;
        border-width: 2px 2px 0 0;
    }

    .nx-corner.bl {
        bottom: 0;
        left: 0;
        border-width: 0 0 2px 2px;
    }

    .nx-corner.br {
        bottom: 0;
        right: 0;
        border-width: 0 2px 2px 0;
    }

/* =========================================================
   HEADER
========================================================= */

.nx-header {
    text-align: center;
    margin-bottom: 30px;
}

.nx-logo-wrap img {
    width: 110px;
    filter: drop-shadow(0 0 18px rgba(255,0,0,.9));
    animation: logoGlow 2s infinite alternate;
}

@keyframes logoGlow {
    from {
        filter: drop-shadow(0 0 10px rgba(255,0,0,.4));
    }

    to {
        filter: drop-shadow(0 0 25px rgba(255,0,0,1));
    }
}

.nx-tagline {
    margin-top: 18px;
    color: #ff9999;
    font-size: 12px;
    letter-spacing: 4px;
    font-family: 'Share Tech Mono',monospace;
}

    .nx-tagline span {
        color: #ff1a1a;
    }

.nx-title {
    margin-top: 12px;
    font-family: 'Orbitron',sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(255,0,0,.6);
}

.nx-title-sub {
    color: #ff8080;
    letter-spacing: 3px;
    font-size: 12px;
}

/* =========================================================
   DIVIDER
========================================================= */

.nx-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 25px 0;
}

    .nx-divider::before,
    .nx-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: rgba(255,0,0,.2);
    }

.nx-divider-icon {
    margin: 0 15px;
    color: #ff1a1a;
    font-size: 14px;
}

/* =========================================================
   FORM FIELDS
========================================================= */

.nx-field {
    margin-bottom: 22px;
}

.nx-field-label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    letter-spacing: 2px;
    color: #ffb3b3;
    text-transform: uppercase;
    font-weight: 600;
}

.nx-input-wrap {
    position: relative;
}

.nx-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff1a1a;
    z-index: 2;
}

.form-control {
    width: 100%;
    height: 58px;
    background: #111 !important;
    border: 1px solid rgba(255,0,0,.35) !important;
    color: #fff !important;
    border-radius: 8px;
    padding-left: 48px;
    font-size: 17px;
    transition: .3s;
    box-shadow: none !important;
}

    .form-control::placeholder {
        color: #777;
    }

    .form-control:focus {
        border-color: #ff1a1a !important;
        box-shadow: 0 0 15px rgba(255,0,0,.45) !important;
        background: #0d0d0d !important;
    }

/* =========================================================
   PASSWORD EYE
========================================================= */

.nx-eye-btn {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff8080;
    cursor: pointer;
    transition: .3s;
}

    .nx-eye-btn:hover {
        color: #fff;
    }

/* =========================================================
   CAPTCHA
========================================================= */

.nx-captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.captcha {
    height:44px;
    border-radius: 8px;
    border: 1px solid rgba(255,0,0,.3);
    overflow: hidden;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn-theme,
.nx-submit {
    background: linear-gradient(135deg,#ff0000,#700000) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 700;
    letter-spacing: 2px;
    transition: .3s;
    box-shadow: 0 0 15px rgba(255,0,0,.25);
}

    .btn-theme:hover,
    .nx-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 25px rgba(255,0,0,.55);
        background: linear-gradient(135deg,#ff1a1a,#8b0000) !important;
    }

.nx-submit {
    width: 100%;
    height: 58px;
    font-family: 'Orbitron',sans-serif;
    font-size: 16px;
    text-transform: uppercase;
}

/* =========================================================
   REMEMBER / FORGOT
========================================================= */

.nx-remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.nx-check-label {
    color: #ccc;
    font-size: 14px;
}

    .nx-check-label input {
        accent-color: #ff1a1a;
    }

.nx-forgot {
    color: #ff4d4d;
    text-decoration: none;
    transition: .3s;
}

    .nx-forgot:hover {
        color: #fff;
    }

/* =========================================================
   REGISTER
========================================================= */

.nx-register-row {
    text-align: center;
    margin-top: 22px;
    color: #aaa;
    font-size: 15px;
}

    .nx-register-row a {
        color: #ff1a1a !important;
        text-decoration: none;
        font-weight: 700;
    }

        .nx-register-row a:hover {
            color: #fff !important;
        }

/* =========================================================
   MODAL
========================================================= */

.modal-content {
    background: #0d0d0d;
    border: 1px solid rgba(255,0,0,.4);
    color: #fff;
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid rgba(255,0,0,.15);
}

.modal-footer {
    border-top: 1px solid rgba(255,0,0,.15);
}

.btn-primary {
    background: linear-gradient(135deg,#ff0000,#700000) !important;
    border: none !important;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:576px) {

    .nx-card {
        padding: 30px 20px;
    }

    .nx-title {
        font-size: 26px;
    }

    .nx-status-bar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .nx-captcha-row {
        flex-direction: row;
        align-items: stretch;
    }
}

