* {
    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, #0a0a0a 0%, #1a0033 50%, #0a0a0a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(147, 51, 234, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.card {
    background: rgba(20, 20, 30, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #9333ea, #ec4899);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.3);
}

h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #9333ea, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.subtitle {
    color: #8b8b9f;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.auth-section, .success-section, .error-section {
    text-align: center;
}

h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #fff;
}

p {
    color: #b0b0c0;
    margin-bottom: 20px;
    line-height: 1.6;
}

.info {
    font-size: 14px;
    color: #8b8b9f;
    font-style: italic;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 10px 5px;
    border: none;
    cursor: pointer;
}

.btn-discord {
    background: #5865F2;
    color: white;
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.3);
}

.discord-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.btn-invite {
    background: linear-gradient(135deg, #9333ea, #ec4899);
    color: white;
    padding: 16px 32px;
    font-size: 18px;
}

.btn-invite:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.4);
}

.btn-logout {
    background: rgba(255, 255, 255, 0.1);
    color: #b0b0c0;
    font-size: 14px;
    padding: 10px 20px;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.15);
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid rgba(147, 51, 234, 0.5);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.success-message {
    color: #10b981;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.error-message {
    color: #ef4444;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.permissions-info {
    background: rgba(147, 51, 234, 0.1);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
    text-align: left;
}

.permissions-info h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #9333ea;
}

.permissions-info ul {
    list-style: none;
    padding: 0;
}

.permissions-info li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #b0b0c0;
    font-size: 14px;
}

.permissions-info li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    font-size: 12px;
    color: #6b6b7f;
    margin-bottom: 10px;
}

footer a {
    color: #9333ea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ec4899;
}

@media (max-width: 600px) {
    .card {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}