@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-dark: #0a0a0f;
    --bg-card: rgba(20, 20, 30, 0.6);
    --primary: #4d7cff;
    --primary-glow: rgba(77, 124, 255, 0.5);
    --secondary: #904dff;
    --text-main: #ffffff;
    --text-muted: #8e8e9f;
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Background Animated Gradient */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(77, 124, 255, 0.1), transparent 40%),
                radial-gradient(circle at 80% 20%, rgba(144, 77, 255, 0.1), transparent 30%);
    z-index: -1;
    animation: drift 20s infinite linear alternate;
}

@keyframes drift {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(10deg); }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

nav h1 {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: fadeUp 0.8s ease-out;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -12px rgba(77, 124, 255, 0.2);
}

.glass-panel.large {
    max-width: 800px;
    text-align: center;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
}

p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(77, 124, 255, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(144, 77, 255, 0.4);
}

.btn-large {
    width: auto;
    padding: 1rem 3rem;
    font-size: 1.2rem;
}

.error-msg {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    border: 1px solid rgba(255, 77, 77, 0.3);
}

.success-msg {
    color: #4dff88;
    background: rgba(77, 255, 136, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    border: 1px solid rgba(77, 255, 136, 0.3);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* FORUM STYLES */
textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    resize: vertical;
}
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}
.forum-list { width: 100%; display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.forum-item { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); border-radius: 12px; transition: transform 0.2s, border-color 0.2s; text-decoration: none; color: var(--text-main); }
.forum-item:hover { transform: translateX(5px); border-color: var(--primary); }
.forum-item-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; }
.forum-item-meta { font-size: 0.9rem; color: var(--text-muted); }
.forum-item-stats { background: rgba(77, 124, 255, 0.2); padding: 0.5rem 1rem; border-radius: 20px; font-weight: 600; color: var(--primary); }
.post-box { padding: 1.5rem; background: rgba(20, 20, 30, 0.8); border: 1px solid var(--glass-border); border-radius: 12px; margin-bottom: 1.5rem; }
.post-header { display: flex; justify-content: space-between; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.post-author { font-weight: 800; color: var(--primary); }
.post-date { font-size: 0.8rem; color: var(--text-muted); }
.post-content { line-height: 1.6; white-space: pre-wrap; }
.admin-badge { background: #ff4d4d; color: white; padding: 2px 6px; border-radius: 4px; font-size: 0.7rem; margin-left: 5px; text-transform: uppercase; }
