
:root {
    /* Backgrounds */
    --dark-bg: #0D0D0D;
    --dark-card: #1A1A1A;
    
    /* Accent Colors */
    --neon-purple: #B366FF;
    --neon-cyan: #00D9FF;
    
    /* Text */
    --white: #FFFFFF;
    --text-light: #E0E0E0;
    --text-muted: #A0A0A0;
    
    /* Status */
    --danger-red: #FF4466;
    --success-green: #00FF88;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0D0D0D, #1A0D2E);
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background: rgba(26, 26, 26, 0.95);
    max-width: 720px;
    width: 100%;
    padding: 50px;
    border-radius: 32px;
    border: 2px solid rgba(179, 102, 255, 0.3);
    box-shadow: 
        0 0 60px rgba(179, 102, 255, 0.3),
        0 0 30px rgba(0, 217, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: slideUpFade 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.form-container {
    max-width: 450px;
}

.icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(179, 102, 255, 0.2), rgba(0, 217, 255, 0.1));
    border: 3px solid var(--neon-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--neon-cyan);
    box-shadow: 
        0 0 40px rgba(0, 217, 255, 0.4),
        0 0 20px rgba(179, 102, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: floatIcon 3s ease-in-out infinite;
}

h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    /* Cyan to Purple gradient text */
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--neon-purple);
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    opacity: 0.8;
    margin-bottom: 25px;
    line-height: 1.6;
}

p {
    font-size: 1rem;
    color: var(--text-light);
    opacity: 0.85;
    margin-bottom: 12px;
    line-height: 1.8;
}

.nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin: 30px 0;
}

.nav-link {
    width: 300px;
    padding: 12px 40px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid transparent;
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Hover effect - bar sliding across */
.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
    z-index: -1;
}

.nav-link:hover::before {
    left: 100%;
}

/* LOGIN BUTTON - Purple */
.btn-primary {
    background: linear-gradient(135deg, var(--neon-purple), #8833FF);
    color: var(--white);
    box-shadow: 0 0 30px rgba(179, 102, 255, 0.4);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--neon-cyan), #00AA8F);
    box-shadow: 0 0 50px rgba(0, 217, 255, 0.6);
    transform: translateY(-4px);
}

/* REGISTER BUTTON - Outlined Purple */
.btn-secondary {
    background: rgba(179, 102, 255, 0.1);
    color: var(--neon-purple);
    border: 2px solid var(--neon-purple);
    box-shadow: 0 0 20px rgba(179, 102, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(0, 217, 255, 0.15);
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.4);
    transform: translateY(-4px);
}

/* LOGOUT BUTTON - Red */
.btn-danger {
    background: rgba(255, 68, 102, 0.1);
    color: var(--danger-red);
    border: 2px solid var(--danger-red);
    box-shadow: 0 0 20px rgba(255, 68, 102, 0.2);
}

.btn-danger:hover {
    background: var(--danger-red);
    color: var(--white);
    box-shadow: 0 0 40px rgba(255, 68, 102, 0.6);
    transform: translateY(-4px);
}

/* Disabled Button */
.btn-block:disabled {
    background-color: rgba(100, 100, 100, 0.3);
    border-color: var(--text-muted);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 0 15px rgba(100, 100, 100, 0.2);
}

.btn-block {
    width: 100%;
    margin-top: 10px;
    padding: 14px;
}

.text-link {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

/* Underline appears on hover */
.text-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    transition: width 0.3s ease;
}

.text-link:hover {
    color: var(--neon-purple);
}

.text-link:hover::after {
    width: 100%;
}
.form-group {
    position: relative;
    margin-bottom: 22px;
    text-align: left;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    opacity: 0.6;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-group input {
    width: 100%;
    padding: 15px 15px 15px 48px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text-light);
    background-color: rgba(36, 36, 36, 0.6);
    border: 2px solid rgba(179, 102, 255, 0.2);
    border-radius: 14px;
    outline: none;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

/* When you click input */
.form-group input:focus {
    background-color: rgba(36, 36, 36, 0.9);
    border-color: var(--neon-purple);
    box-shadow: 0 0 30px rgba(179, 102, 255, 0.3);
    transform: translateY(-2px);
}

/* Icon changes color when focused */
.form-group input:focus + .input-icon,
.form-group input:valid + .input-icon {
    color: var(--neon-cyan);
    opacity: 1;
}

.message-box {
    padding: 16px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 2px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
    display: none;
    backdrop-filter: blur(10px);
    animation: slideInAlert 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Success message (Green) */
.message-box.success {
    background-color: rgba(0, 255, 136, 0.1);
    color: var(--success-green);
    border-color: var(--success-green);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.2);
}

/* Error message (Red) */
.message-box.error {
    background-color: rgba(255, 68, 102, 0.1);
    color: var(--danger-red);
    border-color: var(--danger-red);
    box-shadow: 0 0 25px rgba(255, 68, 102, 0.2);
}

.footer-links {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 2px solid rgba(179, 102, 255, 0.2);
    font-size: 0.9rem;
    line-height: 1.8;
}

footer {
    margin-top: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    opacity: 0.7;
}

.highlight-text {
    color: var(--neon-cyan) !important;
    opacity: 1 !important;
    font-weight: 700;
    letter-spacing: 0.3px;
}


/* Main box slides up and fades in */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Icon floats up and down */
@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Alert slides in from left */
@keyframes slideInAlert {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade in effect */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .nav-links {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
        border-radius: 20px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .icon-wrapper {
        width: 80px;
        height: 80px;
        font-size: 1.8rem;
    }
    
    .nav-link {
        width: 100%;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
