﻿ 
:root {
    --bg-deep: #020d18;
    --bg-card: #041525;
    --bg-panel: #071e30;
    --teal: #00e5ff;
    --teal-dim: #00b8cc;
    --teal-glow: rgba(0, 229, 255, 0.18);
    --teal-border: rgba(0, 229, 255, 0.35);
    --text-primary: #cce8ef;
    --text-muted: #4a7a8a;
    --text-label: #7ab8c8;
    --danger: #ff4d6a;
    --gold: #f0b429;
    --font-display: 'Orbitron', monospace;
    --font-mono: 'Share Tech Mono', monospace;
    --font-body: 'Rajdhani', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    min-height: 100%;
    background: var(--bg-deep);
    font-family: var(--font-body);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ── ANIMATED BACKGROUND ── */
.nx-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(0,100,150,0.18) 0%, transparent 65%), radial-gradient(ellipse 60% 50% at 10% 80%, rgba(0,60,100,0.14) 0%, transparent 60%), var(--bg-deep);
}

.nx-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: linear-gradient(rgba(0,229,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0,229,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridPan 30s linear infinite;
}

@keyframes gridPan {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 40px;
    }
}

.nx-dot {
    position: fixed;
    border-radius: 50%;
    background: var(--teal);
    filter: blur(80px);
    opacity: 0.07;
    animation: floatDot 12s ease-in-out infinite;
    z-index: 0;
}

    .nx-dot:nth-child(1) {
        width: 400px;
        height: 400px;
        top: -100px;
        right: -80px;
        animation-delay: 0s;
    }

    .nx-dot:nth-child(2) {
        width: 300px;
        height: 300px;
        bottom: -60px;
        left: -60px;
        animation-delay: -5s;
    }

    .nx-dot:nth-child(3) {
        width: 200px;
        height: 200px;
        top: 45%;
        left: 55%;
        animation-delay: -9s;
    }

@keyframes floatDot {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.08);
    }
}

/* ── SCAN LINE ── */
.nx-scan {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient( 0deg, transparent, transparent 3px, rgba(0,0,0,0.06) 3px, rgba(0,0,0,0.06) 4px );
}

/* ── LAYOUT ── */
.nx-page {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.nx-wrapper {
    width: 100%;
    max-width: 480px;
    animation: fadeUp .7s cubic-bezier(.22,1,.36,1) both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── CARD ── */
.nx-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--teal-border);
    padding: 40px 36px 36px;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

    .nx-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(0,229,255,0.06) 0%, transparent 50%);
        pointer-events: none;
    }

/* Corner brackets */
.nx-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: var(--teal);
    border-style: solid;
}

    .nx-corner.tl {
        top: -1px;
        left: -1px;
        border-width: 2px 0 0 2px;
    }

    .nx-corner.tr {
        top: -1px;
        right: -1px;
        border-width: 2px 2px 0 0;
    }

    .nx-corner.bl {
        bottom: -1px;
        left: -1px;
        border-width: 0 0 2px 2px;
    }

    .nx-corner.br {
        bottom: -1px;
        right: -1px;
        border-width: 0 2px 2px 0;
    }

/* ── HEADER ── */
.nx-header {
    text-align: center;
    margin-bottom: 32px;
}

.nx-logo-wrap {
    display: inline-block;
    margin-bottom: 20px;
}

    .nx-logo-wrap img {
        height: 52px;
        filter: drop-shadow(0 0 12px rgba(0,229,255,0.5));
    }

.nx-tagline {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--teal);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
    opacity: 0.7;
}

    .nx-tagline span {
        color: var(--text-muted);
    }

.nx-title {
    font-family: var(--font-display);
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.2;
}

.nx-title-sub {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-top: 6px;
}

/* Decorative divider */
.nx-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 28px;
}

    .nx-divider::before, .nx-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--teal-border));
    }

    .nx-divider::after {
        transform: rotate(180deg);
    }

.nx-divider-icon {
    width: 28px;
    height: 28px;
    border: 1px solid var(--teal-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    font-size: 10px;
}

/* ── FORM FIELDS ── */
.nx-field {
    position: relative;
    margin-bottom: 16px;
}

.nx-field-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--teal);
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
    opacity: 0.8;
}

.nx-input-wrap {
    position: relative;
}

    .nx-input-wrap .nx-icon {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--teal-dim);
        font-size: 13px;
        pointer-events: none;
        z-index: 2;
    }

/* Override original .select-field */
.select-field,
input.select-field,
#Captcha {
    width: 100% !important;
    background: rgba(0,20,35,0.8) !important;
    border: 1px solid var(--teal-border) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-mono) !important;
    font-size: 13px !important;
    padding: 12px 14px 12px 40px !important;
    outline: none !important;
    border-radius: 0 !important;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%) !important;
    transition: border-color .2s, box-shadow .2s !important;
    letter-spacing: 1px !important;
}

    .select-field::placeholder,
    #Captcha::placeholder {
        color: var(--text-muted) !important;
        opacity: 1 !important;
    }

    .select-field:focus,
    #Captcha:focus {
        border-color: var(--teal) !important;
        box-shadow: 0 0 0 2px var(--teal-glow), inset 0 0 12px rgba(0,229,255,0.04) !important;
    }

/* Password eye icon */
.nx-eye-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 13px;
    z-index: 3;
    transition: color .2s;
    background: none;
    border: none;
    padding: 0;
}

    .nx-eye-btn:hover {
        color: var(--teal);
    }

/* ── CAPTCHA ROW ── */
.nx-captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.captcha {
    height: 44px;
    border: 1px solid var(--teal-border) !important;
    background: rgba(0,20,35,0.6);
    flex-shrink: 0;
}

/* ── BUTTONS ── */
.btn-theme,
.btn-nx {
    font-family: var(--font-display) !important;
    font-size: 11px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    background: transparent !important;
    border: 1px solid var(--teal) !important;
    color: var(--teal) !important;
    padding: 10px 16px !important;
    cursor: pointer !important;
    transition: background .2s, box-shadow .2s, color .2s !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

    .btn-theme::before,
    .btn-nx::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--teal);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .25s ease;
        z-index: 0;
    }

    .btn-theme:hover::before,
    .btn-nx:hover::before {
        transform: scaleX(1);
    }

    .btn-theme:hover,
    .btn-nx:hover {
        color: var(--bg-deep) !important;
        box-shadow: 0 0 20px var(--teal-glow) !important;
    }

    .btn-theme span,
    .btn-theme i,
    .btn-nx span,
    .btn-nx i {
        position: relative;
        z-index: 1;
    }

/* Submit button full-width */
.nx-submit {
    width: 100% !important;
    padding: 14px 20px !important;
    font-size: 13px !important;
    letter-spacing: 3px !important;
    margin-top: 8px !important;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)) !important;
}

    .nx-submit:hover {
        background: var(--teal) !important;
        color: var(--bg-deep) !important;
    }

/* ── REMEMBER / FORGOT ── */
.nx-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 18px 0 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.nx-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-muted);
    cursor: pointer;
}

    .nx-check-label input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        width: 14px;
        height: 14px;
        border: 1px solid var(--teal-border);
        background: transparent;
        cursor: pointer;
        position: relative;
        flex-shrink: 0;
    }

        .nx-check-label input[type="checkbox"]:checked {
            background: var(--teal);
            border-color: var(--teal);
        }

            .nx-check-label input[type="checkbox"]:checked::after {
                content: '✓';
                position: absolute;
                inset: 0;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 9px;
                color: var(--bg-deep);
                font-weight: 700;
            }

.nx-forgot {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--teal-dim) !important;
    text-decoration: none !important;
    transition: color .2s;
}

    .nx-forgot:hover {
        color: var(--teal) !important;
    }

/* ── REGISTER LINK ── */
.nx-register-row {
    text-align: center;
    margin-top: 22px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-top: 1px solid rgba(0,229,255,0.1);
    padding-top: 20px;
}

    .nx-register-row a {
        color: var(--teal) !important;
        text-decoration: none !important;
        transition: color .2s;
        font-weight: 600;
    }

        .nx-register-row a:hover {
            color: #fff !important;
        }

/* ── VALIDATION MESSAGES ── */
.field-validation-error,
.nx-error {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--danger);
    letter-spacing: 1px;
    display: block;
    margin-top: 5px;
}

/* ── STATUS BAR ── */
.nx-status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.nx-status-dot {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nx-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 6px var(--teal);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .4;
        transform: scale(.8);
    }
}

/* ── MODAL (keep original logic, restyle) ── */
.modal-confirm {
    max-width: 420px;
}

    .modal-confirm .modal-content {
        background: var(--bg-panel) !important;
        border: 1px solid var(--teal-border) !important;
        border-radius: 0 !important;
        clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
        color: var(--text-primary) !important;
    }

    .modal-confirm .modal-header {
        border-bottom: 1px solid var(--teal-border) !important;
        padding: 20px !important;
        background: transparent !important;
    }

    .modal-confirm .modal-footer {
        border-top: 1px solid var(--teal-border) !important;
        background: transparent !important;
    }

#lblmessageInfo {
    font-family: var(--font-mono) !important;
    font-size: 15px !important;
    color: var(--text-primary) !important;
    letter-spacing: 1px !important;
}

.modal-confirm .btn-primary {
    background: transparent !important;
    border: 1px solid var(--teal) !important;
    color: var(--teal) !important;
    font-family: var(--font-display) !important;
    font-size: 11px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    transition: background .2s, color .2s !important;
    border-radius: 0 !important;
}

    .modal-confirm .btn-primary:hover {
        background: var(--teal) !important;
        color: var(--bg-deep) !important;
    }

/* ── RESPONSIVE ── */
@media (max-width: 576px) {
    .nx-card {
        padding: 28px 20px 24px;
    }

    .nx-captcha-row {
        gap: 8px;
    }

    .nx-remember-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .nx-title {
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .nx-card {
        padding: 22px 14px 18px;
    }

    .select-field, input.select-field, #Captcha {
        font-size: 12px !important;
    }
}
 