/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Modal Content */
.modal-content {
    background: rgba(12, 12, 20, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(138, 156, 255, 0.2);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7), 0 0 30px rgba(138, 156, 255, 0.1);
    transform: scale(0.8);
    transition: all 0.4s ease;
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

/* Modal Title */
.modal-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    background: linear-gradient(45deg, #8a9cff, #6b7cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(138, 156, 255, 0.3);
}

/* Modal Description */
.modal-description {
    color: #b8b8b8;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

/* Discord Login Button */
.discord-login-btn {
    background: linear-gradient(45deg, #8a9cff, #6b7cff);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-shadow: 0 8px 25px rgba(138, 156, 255, 0.3);
}

        .discord-login-btn:hover {
            background: linear-gradient(45deg, #6b7cff, #5a6bff);
            transform: translateY(-2px);
            box-shadow: 0 12px 35px rgba(138, 156, 255, 0.4);
        }
        
        .discord-login-btn:active {
            transform: translateY(0);
        }
        
        /* Remember Me Checkbox */
        .remember-me {
            margin: 1.5rem 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            color: #b8b8b8;
            font-size: 0.95rem;
            padding: 0.5rem;
            transition: color 0.3s ease;
        }
        
        .remember-me input[type="checkbox"] {
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            width: 18px;
            height: 18px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 4px;
            background: rgba(0, 0, 0, 0.2);
            cursor: pointer;
            position: relative;
            transition: all 0.2s ease;
            display: inline-block;
            vertical-align: middle;
        }
        
        .remember-me input[type="checkbox"]:checked {
            background: #8a9cff;
            border-color: #8a9cff;
            transform: scale(1.1);
        }
        
        .remember-me input[type="checkbox"]:checked::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 6px;
            height: 10px;
            border: 2px solid white;
            border-top: none;
            border-left: none;
            transform: translate(-50%, -60%) rotate(45deg);
            animation: checkmark 0.2s ease-out;
        }
        
        @keyframes checkmark {
            0% {
                opacity: 0;
                transform: translate(-50%, -60%) rotate(45deg) scale(0.3);
            }
            100% {
                opacity: 1;
                transform: translate(-50%, -60%) rotate(45deg) scale(1);
            }
        }
        
        .remember-me input[type="checkbox"]:hover {
            border-color: rgba(138, 156, 255, 0.6);
        }
        
        .remember-me input[type="checkbox"]:focus {
            outline: none;
            box-shadow: 0 0 0 2px rgba(138, 156, 255, 0.3);
        }
        
        .remember-me label {
            cursor: pointer;
            user-select: none;
            font-weight: 400;
            transition: color 0.2s ease;
        }
        
        .remember-me label:hover {
            color: #d0d0d0;
        }

/* Discord Icon */
.discord-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Loading State */
.discord-login-btn.loading {
    background: linear-gradient(45deg, #666, #555);
    cursor: not-allowed;
    transform: none;
}

        .discord-login-btn.loading::after {
            content: '';
            width: 16px;
            height: 16px;
            border: 2px solid transparent;
            border-top: 2px solid white;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-left: 8px;
        }
        
        /* OAuth Iframe Container */
        .oauth-container {
            margin: 1rem 0;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }
        
        .oauth-info {
            margin-top: 1rem;
            text-align: center;
            color: #b8b8b8;
            font-size: 0.9rem;
        }
        
        .oauth-info p {
            margin: 0.3rem 0;
        }

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

/* Error Message */
.error-message {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Success Message */
.success-message {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 480px) {
    .modal-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .discord-login-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
} 