:root {
    --primary-color: #00f2ff;
    /* Cyan neon */
    --primary-glow: rgba(0, 242, 255, 0.4);
    --secondary-color: #0066cc;
    --bg-dark: #050505;
    --glass-bg: rgba(20, 20, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #888888;
    --input-bg: rgba(255, 255, 255, 0.03);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
    margin: 0;
}

/* --- Animated Background --- */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #0a0a1a 0%, #000000 100%);
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 10s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary-color), transparent);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #4d0099, transparent);
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 50px);
    }
}

/* --- Layout --- */
.auth-container {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 1rem;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
}

.auth-glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1rem 3rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    animation: panel-entry 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.auth-glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.8;
}

@keyframes panel-entry {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- Header --- */
.logo-wrapper {
    width: 120px;
    height: 120px;
    background: rgb(255, 255, 255);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 20px solid rgb(255, 255, 255);
    box-shadow: 0 0 20px rgb(255, 255, 255);
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.brand-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    /* margin-bottom: 1rem; */
    color: white;
}

.brand-highlight {
    color: var(--primary-color);
}

/* --- Typography --- */
h4 {
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

p.text-muted {
    font-size: 0.9rem;
    color: var(--text-muted) !important;
}

/* --- Forms --- */
.form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #aaa;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    background-color: var(--input-bg);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
    color: white;
}

.form-control::placeholder {
    color: #555;
}

.form-check-input {
    background-color: var(--input-bg);
    border-color: var(--glass-border);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #004488);
    border: none;
    padding: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 12px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.4);
    background: linear-gradient(135deg, #0077ee, #0055aa);
    color: white;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: #ccc;
    padding: 0.8rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: white;
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* --- Links --- */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--primary-glow);
}

hr {
    border-color: var(--glass-border);
    opacity: 0.5;
    margin: 2rem 0;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b6b;
    border-radius: 12px;
    font-size: 0.9rem;
}