/* Modern Discord Login Page Styles */
:root {
    --discord-blurple: #5865F2;
    --discord-blurple-hover: #4752C4;
    --discord-dark: #23272A;
    --discord-darker: #1e2124;
    --discord-not-quite-black: #2C2F33;
    --discord-text: #FFFFFF;
    --discord-text-muted: #B9BBBE;
    --discord-error: #ED4245;
    --discord-success: #57F287;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1e2124 0%, #23272A 50%, #2C2F33 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--discord-text);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(88, 101, 242, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(88, 101, 242, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(87, 242, 135, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(88, 101, 242, 0.03) 2px, rgba(88, 101, 242, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(88, 101, 242, 0.03) 2px, rgba(88, 101, 242, 0.03) 4px);
    pointer-events: none;
    z-index: 0;
}

.login-container {
    width: 100%;
    max-width: 550px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(44, 47, 51, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(88, 101, 242, 0.1);
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.15) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.logo-section {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.logo-section img {
    max-height: 100px;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 16px rgba(88, 101, 242, 0.4));
    animation: logoFloat 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.logo-section img:hover {
    /* Hover entfernt */
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.logo-section h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--discord-text);
    background: linear-gradient(135deg, #FFFFFF 0%, #B9BBBE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.logo-section p {
    font-size: 18px;
    color: var(--discord-text-muted);
    font-weight: 400;
    position: relative;
    z-index: 2;
}

.error-alert {
    background: rgba(237, 66, 69, 0.15);
    border: 1px solid rgba(237, 66, 69, 0.4);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 28px;
    color: var(--discord-error);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: shake 0.5s ease-out;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(237, 66, 69, 0.2);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-alert svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.discord-button {
    width: 100%;
    background: linear-gradient(135deg, var(--discord-blurple) 0%, #6B7AED 100%);
    color: var(--discord-text);
    border: none;
    border-radius: 8px;
    padding: 18px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

.discord-button:hover {
    background: linear-gradient(135deg, var(--discord-blurple-hover) 0%, #5A68DB 100%);
    /* Minimale Hover-Effekte */
}

.discord-button:hover::before {
    left: 100%;
}

.discord-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
}

.discord-button svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.discord-button-text {
    display: flex;
    align-items: center;
    gap: 12px;
}

.terms-text {
    text-align: center;
    margin-top: 28px;
    font-size: 13px;
    color: var(--discord-text-muted);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Features Section */
.features-section {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.feature-item svg {
    width: 20px;
    height: 20px;
    color: var(--discord-blurple);
    flex-shrink: 0;
}

.feature-item div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature-item strong {
    color: var(--discord-text);
    font-size: 14px;
    font-weight: 600;
}

.feature-item span {
    color: var(--discord-text-muted);
    font-size: 13px;
}

/* Info Section */
.info-section {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.info-card {
    background: rgba(44, 47, 51, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-icon {
    width: 20px;
    height: 20px;
    color: var(--discord-blurple);
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--discord-text);
    margin-bottom: 8px;
}

.info-content p {
    font-size: 13px;
    color: var(--discord-text-muted);
    line-height: 1.5;
    margin: 0;
}

.terms-text a {
    color: #00A8FC;
    text-decoration: none;
    transition: color 0.2s ease;
}

.terms-text a:hover {
    color: #0096E6;
    text-decoration: underline;
}

.footer {
    text-align: center;
    margin-top: 32px;
    font-size: 12px;
    color: var(--discord-text-muted);
    line-height: 1.8;
}

.footer a {
    color: var(--discord-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    margin: 0 4px;
}

.footer a:hover {
    color: var(--discord-text);
    text-decoration: underline;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--discord-text);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.discord-button.loading .discord-button-text {
    opacity: 0.7;
}

.discord-button.loading .loading-spinner {
    display: block;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        max-width: 100%;
    }
    
    .login-card {
        padding: 40px 28px;
    }
    
    .logo-section img {
        max-height: 80px;
    }
    
    .logo-section h1 {
        font-size: 26px;
    }
    
    .logo-section p {
        font-size: 16px;
    }
    
    .discord-button {
        padding: 16px;
        font-size: 16px;
    }
    
    .info-section {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        padding: 14px;
    }
}

/* Animated Particles */
.animated-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(88, 101, 242, 0.6);
    border-radius: 50%;
    animation: particleFloat 15s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(88, 101, 242, 0.8);
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: -2s;
    animation-duration: 18s;
    width: 6px;
    height: 6px;
    background: rgba(87, 242, 135, 0.5);
    box-shadow: 0 0 12px rgba(87, 242, 135, 0.6);
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: -4s;
    animation-duration: 22s;
    width: 3px;
    height: 3px;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: -6s;
    animation-duration: 19s;
    width: 5px;
    height: 5px;
    background: rgba(88, 101, 242, 0.4);
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: -8s;
    animation-duration: 21s;
    width: 4px;
    height: 4px;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) scale(1);
        opacity: 0;
    }
}

/* Glow effects */
.login-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(88, 101, 242, 0.3), rgba(87, 242, 135, 0.2), rgba(88, 101, 242, 0.3));
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(8px);
}

.login-card:hover::after {
    /* Hover-Effekt entfernt */
    opacity: 0;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #0d0f12 0%, #1a1d21 50%, #23272A 100%);
    }
}

