/* ==============================================
   DISCORD LOGIN PAGE - AUTH COMPONENTS
   Login UI, modal, Discord gomb - NEM tartalmaz háttér/intro video CSS!
   Ezek a main.css-ben vannak (alapoldal funkciók)
   ============================================== */

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

/* Háttér animáció */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

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

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

.particle:nth-child(2) {
    left: 30%;
    animation-delay: 2s;
    animation-duration: 18s;
}

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

.particle:nth-child(4) {
    left: 70%;
    animation-delay: 6s;
    animation-duration: 16s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 8s;
    animation-duration: 20s;
}

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

/* Login container */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(26, 31, 46, 0.85);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 16px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 40px rgba(88, 101, 242, 0.15);
    backdrop-filter: blur(10px);
    animation: slideIn 0.6s ease-out;
}

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

/* Logo section */
.logo-section {
    text-align: center;
    margin: 0;
    padding: 0;
}

.site-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #5865F2, #7289DA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.site-subtitle {
    font-size: 1rem;
    color: #94a3b8;
}

/* Login section */
.login-section {
    text-align: center;
}

.login-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e0e7ff;
}

.login-section p {
    color: #94a3b8;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Discord button */
.discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6);
    background: linear-gradient(135deg, #4752C4, #3C45A5);
}

.discord-btn:active {
    transform: translateY(0);
}

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

/* Welcome section (bejelentkezve) */
.welcome-section {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(88, 101, 242, 0.2);
}

.welcome-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid #5865F2;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.welcome-section h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: #e0e7ff;
}

.welcome-role {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Admin button */
.admin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #00d9ff, #0099ff);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.4);
    margin-bottom: 1.5rem;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 217, 255, 0.6);
    background: linear-gradient(135deg, #0099ff, #0077cc);
}

.admin-btn:active {
    transform: translateY(0);
}

/* Logout link */
.logout-link {
    display: block;
    text-align: center;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.logout-link:hover {
    color: #ef4444;
}

/* Messages */
.error-message,
.success-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.error-message {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.success-message {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

/* Footer info */
.footer-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(88, 101, 242, 0.2);
    text-align: center;
}

.footer-info p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0.25rem 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: rgba(26, 31, 46, 0.95);
    border: 2px solid rgba(88, 101, 242, 0.5);
    border-radius: 16px;
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #e0e7ff;
}

.modal-body {
    text-align: center;
    padding: 1.5rem 0;
}

.loading-animation {
    margin-bottom: 1.5rem;
}

.spinner {
    border: 4px solid rgba(88, 101, 242, 0.2);
    border-top: 4px solid #5865F2;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.modal-text {
    font-size: 1.1rem;
    color: #e0e7ff;
    margin-bottom: 0.5rem;
}

.modal-subtext {
    font-size: 0.9rem;
    color: #94a3b8;
}

.modal-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.cancel-btn {
    padding: 0.75rem 2rem;
    background: rgba(71, 85, 105, 0.5);
    color: #e0e7ff;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: rgba(71, 85, 105, 0.7);
    border-color: rgba(148, 163, 184, 0.5);
}

/* Responsive */
@media (max-width: 600px) {
    .login-card {
        padding: 2rem;
    }

    .site-title {
        font-size: 2rem;
    }

    .discord-btn {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
}
