:root {
    --primary-color: #333999;
    --primary-hover: #292e84;
    --bg-dark: #121212;
    --bg-soft-dark: #1e1e1e;
}

body {
    background-color: var(--bg-dark);
    font-family: 'Poppins', sans-serif;
    color: #e0e0e0;
}

.btn-custom {
    background-color: var(--primary-color); border: 2px solid var(--primary-color);
    color: #fff; font-weight: 600; padding: 0.75rem 1.5rem; transition: all 0.3s ease-in-out;
}
.btn-custom:hover, .btn-custom:focus {
    background-color: var(--primary-hover); border-color: var(--primary-hover);
    color: #fff; transform: translateY(-3px); box-shadow: 0 4px 15px rgba(41, 46, 132, 0.4);
}
.btn-download {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-hover));
    border: none; box-shadow: 0 4px 20px rgba(51, 57, 153, 0.5);
}
.btn-outline-custom {
    border: 2px solid var(--primary-color); color: var(--primary-color);
    font-weight: 600; padding: 0.75rem 1.5rem; transition: all 0.3s ease-in-out;
}
.btn-outline-custom:hover {
    background-color: var(--primary-color); color: #fff; transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(41, 46, 132, 0.2);
}
.btn-outline-custom .icon-base { color: var(--primary-color); transition: color 0.3s ease; }
.btn-outline-custom:hover .icon-base { color: #fff; }

/* --- Navbar --- */
.navbar {
    background-color: rgba(18, 18, 18, 0.85); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem; padding-bottom: 1rem;
}
.navbar-brand { font-size: 1.75rem; font-weight: 700; }
.nav-link { font-size: 1.1rem; }

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #121212 100%);
    min-height: 100vh; color: #fff; display: flex; align-items: center;
}
.hero-section h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700; }
.hero-image {
    border-radius: 1rem; box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    width: 100%; height: auto; object-fit: cover;
}

/* --- Server Stats Section --- */
.stats-section {
    background-color: var(--bg-dark); padding: 2.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.stat-card {
    background-color: var(--bg-soft-dark); padding: 1.5rem; border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.status-dot {
    height: 12px; width: 12px; border-radius: 50%; display: inline-block;
    margin-right: 8px; animation: pulse 2s infinite;
}
.status-dot.online { background-color: #28a745; }
.status-dot.offline { background-color: #dc3545; animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); } 100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }}
.progress-bar { background: linear-gradient(45deg, var(--primary-color), var(--primary-hover)); }

/* --- Features Section --- */
.feature-icon { font-size: 4rem; color: var(--primary-color); margin-bottom: 1rem; transition: transform 0.3s ease; }
.feature-card { background-color: var(--bg-soft-dark); border-radius: 1rem; border: 1px solid rgba(255, 255, 255, 0.1); }
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-5deg); }
.counter { font-size: 3rem; font-weight: 700; color: #fff; }

/* --- "How to Play" Section --- */
.step-card {
    background-color: var(--bg-soft-dark); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem; padding: 2rem; position: relative; overflow: hidden;
}
.step-number {
    position: absolute; top: -20px; left: -10px; font-size: 5rem;
    font-weight: 700; color: rgba(255, 255, 255, 0.05); z-index: 0; user-select: none;
}
.step-card .card-body { position: relative; z-index: 1; }

/* --- Footer --- */
footer { background-color: var(--bg-soft-dark); border-top: 1px solid rgba(255, 255, 255, 0.1); }
.social-icon { font-size: 1.5rem; color: #aaa; margin: 0 0.75rem; transition: all 0.3s ease; }
.social-icon:hover { color: var(--primary-color); transform: translateY(-3px); }


.login-wrapper {
    background-image: 
        linear-gradient(rgba(18, 18, 18, 0.85), rgba(18, 18, 18, 0.85)),
        url('https://switchyourdream.de/images/roleroyale5/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-container {
    flex: 1;
    padding: 2rem 1rem;
}

.login-card {
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    background-color: rgba(30, 30, 30, 0.75);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
}

.login-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Custom Form Styles */
.form-floating > .form-control {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: all 0.3s ease;
}
.form-floating > .form-control:focus {
    background-color: rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(51, 57, 153, 0.3); /* Focus ring with primary color */
    color: #fff;
}

.form-floating > label {
    color: #a0a0a0;
}
.form-floating > .form-control:focus ~ label {
    color: var(--primary-color);
}

.form-check-input {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-hover);
}
.form-check-label {
    font-size: 0.9rem;
    color: #c0c0c0;
}

.form-link {
    font-size: 0.9rem;
    color: #a0a0c0;
    text-decoration: none;
    transition: color 0.3s ease;
}
.form-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* "OR" Divider */
.or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
}
.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.or-divider:not(:empty)::before {
    margin-right: .5em;
}
.or-divider:not(:empty)::after {
    margin-left: .5em;
}

/* Footer Links */
.footer-link {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-link:hover {
    color: #fff;
}

footer {
    background-color: rgba(18, 18, 18, 0.7); /* Slightly transparent to blend with bg */
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}