:root {
    --primary-color: #11151F;         /* Dark background */
    --secondary-color: #1A1F2C;       /* Slightly lighter dark */
    --accent-color: #00FFDD;          /* Cyan/teal neon accent */
    --accent-color-alt: #7700FF;      /* Purple neon accent */
    --text-color: #E0E0E0;            /* Light text */
    --text-color-muted: #8A8D93;      /* Muted text */
    --card-bg: rgb(126 93 220 / 20%); /* Card background */
    --input-bg: rgba(15, 20, 25, 0.6); /* Input background */
    --border-color: rgba(255, 255, 255, 0.08); /* Border color */
    --error-color: #FF3E6C;           /* Error color */
}

.auth-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-color);
    overflow: hidden;
    position: relative;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.cube {
    position: absolute;
    top: 80vh;
    left: 45vw;
    width: 10px;
    height: 10px;
    border: solid 1px var(--accent-color);
    transform-origin: top left;
    transform: scale(0) rotate(0deg) translate(-50%, -50%);
    animation: cube 12s ease-in forwards infinite;
    opacity: 0;
}

.cube:nth-child(2) {
    animation-delay: 2s;
    left: 25vw;
    top: 40vh;
    border-color: var(--accent-color-alt);
}

.cube:nth-child(3) {
    animation-delay: 4s;
    left: 75vw;
    top: 50vh;
}

.cube:nth-child(4) {
    animation-delay: 6s;
    left: 90vw;
    top: 10vh;
    border-color: var(--accent-color-alt);
}

.cube:nth-child(5) {
    animation-delay: 8s;
    left: 10vw;
    top: 85vh;
}

@keyframes cube {
    from {
        transform: scale(0) rotate(0deg) translate(-50%, -50%);
        opacity: 1;
    }
    to {
        transform: scale(20) rotate(960deg) translate(-50%, -50%);
        opacity: 0;
    }
}

.auth-brand {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 10;
}

.brand-logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(0, 255, 221, 0.4));
    transition: all 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(0, 255, 221, 0.6));
}

.auth-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.auth-hero {
    flex: 1;
    position: relative;
    display: block;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5) saturate(1.2) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(10, 14, 25, 0.85), rgba(24, 21, 50, 0.65));
    z-index: 1;
}

.hero-content {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 3rem;
    color: white;
    z-index: 2;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 221, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-tagline {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-color);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 80%;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Neon text effect */
.neon-text {
    color: #fff;
    text-shadow: 
        0 0 5px #fff, 
        0 0 10px #fff, 
        0 0 20px var(--accent-color),
        0 0 40px var(--accent-color),
        0 0 80px var(--accent-color);
}

/* Gaming decorative elements */
.gaming-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* Hexagon grid background */
.hex-grid {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.hex {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: rgba(0, 255, 221, 0.05);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.3;
}

.hex1 {
    top: 20%;
    right: 10%;
    width: 80px;
    height: 80px;
    animation: pulse 8s infinite alternate;
    background-color: rgba(0, 255, 221, 0.05);
}

.hex2 {
    top: 40%;
    right: 20%;
    width: 120px;
    height: 120px;
    animation: pulse 12s infinite alternate-reverse;
    background-color: rgba(119, 0, 255, 0.05);
}

.hex3 {
    top: 60%;
    right: 5%;
    animation: pulse 10s infinite alternate;
    background-color: rgba(0, 255, 221, 0.05);
}

@keyframes pulse {
    0% { 
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.5; 
        transform: scale(1.1);
    }
    100% { 
        opacity: 0.2;
        transform: scale(1);
    }
}

.floating-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    animation-duration: 6s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    font-size: 2rem;
}

.floating-icon-1 {
    top: 20%;
    left: 10%;
    color: rgba(0, 255, 221, 0.6);
    text-shadow: 0 0 15px var(--accent-color);
    animation-name: float1;
}

.floating-icon-2 {
    top: 40%;
    right: 20%;
    color: rgba(119, 0, 255, 0.6);
    text-shadow: 0 0 15px var(--accent-color-alt);
    animation-name: float2;
    animation-delay: 1s;
}

.floating-icon-3 {
    bottom: 40%;
    left: 30%;
    color: rgba(0, 255, 221, 0.6);
    text-shadow: 0 0 15px var(--accent-color);
    animation-name: float3;
    animation-delay: 2s;
}

.floating-icon-4 {
    bottom: 20%;
    right: 30%;
    color: rgba(119, 0, 255, 0.6);
    text-shadow: 0 0 15px var(--accent-color-alt);
    animation-name: float4;
    animation-delay: 1.5s;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(20px) rotate(-10deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(20px) rotate(10deg); }
}

@keyframes float4 {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
    50% { transform: translateY(-15px) translateX(10px) rotate(5deg); }
}

.auth-content {
    flex: 1;
    display: block;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 5;
    overflow-y: auto;
    max-height: 100vh;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin: 0 auto;
}

.demo-alert .alert-heading,.demo-alert p {
    color: #fff;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(0, 255, 221, 0.08) 0%,
        rgba(119, 0, 255, 0.05) 30%,
        transparent 70%
    );
    z-index: -1;
    animation: rotateGlow 15s infinite linear;
    opacity: 0.5;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-color-alt));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.auth-subtitle {
    color: var(--text-color-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.text-accent {
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.input-group {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--input-bg);
}

.input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(0, 255, 221, 0.1);
    border-color: var(--accent-color);
}

.input-group-text {
    background: transparent;
    border: none;
    color: var(--text-color-muted);
}

.form-control {
    border: none;
    padding: 0.75rem 1rem;
    background: transparent;
    color: var(--text-color);
}

.form-control:focus {
    box-shadow: none;
    background: transparent;
    color: var(--text-color);
}

.form-control::placeholder {
    color: var(--text-color-muted);
    opacity: 0.7;
}

.form-check-input {
    background-color: var(--input-bg);
    border-color: var(--border-color);
}

.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.form-check-label {
    color: var(--text-color-muted);
    font-size: 0.95rem;
}

.btn-accent {
    background: linear-gradient(45deg, var(--accent-color), var(--accent-color-alt));
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #121212;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-outline-accent {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline-accent:hover {
    background: rgba(0, 255, 221, 0.1);
    color: var(--accent-color);
}

/* Neon button effect */
.neon-btn {
    position: relative;
    box-shadow: 0 0 10px rgba(0, 255, 221, 0.4);
    z-index: 1;
}

.neon-btn:hover, .neon-btn:focus {
    background: linear-gradient(45deg, var(--accent-color-alt), var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 221, 0.6);
}

.divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: var(--text-color-muted);
}

.divider:before, .divider:after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    padding: 0 1rem;
    font-size: 0.875rem;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-social {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--input-bg);
    color: var(--text-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.btn-social:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-google:hover {
    color: #ea4335;
    border-color: #ea4335;
}

.demo-alert {
    border-radius: 8px;
    background-color: rgb(116 8 254 / 21%);
    border-color: rgb(2 255 221 / 29%);
}

.invalid-feedback {
    color: var(--error-color);
    font-size: 0.85rem;
}

/* Additional styles for registration form */
.row.g-3 {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.row.g-3 > div {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-top: 0.5rem;
}

.form-check-input {
    margin-top: 0.3rem;
    margin-right: 0.5rem;
}

.form-check-label a {
    text-decoration: none;
    transition: color 0.2s;
    color: var(--accent-color);
}

.form-check-label a:hover {
    text-decoration: underline;
    color: var(--accent-color-alt);
}

.toggle-password, .toggle-confirm-password {
    color: var(--text-color-muted);
    background: transparent;
    border: none;
}

.toggle-password:hover, .toggle-confirm-password:hover {
    color: var(--accent-color);
}

.forgot-password {
    color: var(--accent-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.forgot-password:hover {
    color: var(--accent-color-alt);
    text-decoration: underline;
}

.back-link {
    color: var(--accent-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
}

.back-link:hover {
    color: var(--accent-color-alt);
    transform: translateX(-3px);
}

/* Password strength indicator */
.password-strength {
    height: 5px;
    margin-top: 0.5rem;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.password-strength-meter {
    height: 100%;
    width: 0;
    border-radius: 5px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-weak {
    background-color: #ff4d4d;
    width: 33%;
}

.strength-medium {
    background-color: #ffaa00;
    width: 66%;
}

.strength-strong {
    background-color: #00cc44;
    width: 100%;
}

@keyframes highlightInput {
    0% { background-color: transparent; }
    50% { background-color: rgba(0, 255, 221, 0.15); }
    100% { background-color: transparent; }
}

.highlight-input {
    animation: highlightInput 1s ease;
}

/* Modal for error messages */
.auth-modal {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: rgba(22, 28, 36, 0.9);
    border-left: 4px solid var(--accent-color);
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 1000;
    color: var(--text-color);
}

.auth-modal.show {
    transform: translateX(0);
}

@media (max-width: 1199.98px) {
    .auth-hero {
        display: none;
    }

}

@media (max-width: 767.98px) {
    .auth-brand{
        position: relative !important;
        text-align: center;
        top: 10px;
        left: 0;
    }
    .auth-content{
        display: block;
    }
    .auth-card {
        padding: 1.5rem;
    }
    
    .row.g-3 > div {
        width: 100%;
    }
} 